Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module talk:Factorization/testcases

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

All 16 live tests passed. All 16 sandbox tests passed.

test_factor

test_factor
TestLiveSandboxExpected
checkYcheckY {{#invoke:Factorization|factor|-20}} <strong class="error">Error: -20 out of range</strong> <strong class="error">Error: -20 out of range</strong> <strong class="error">Error: -20 out of range</strong>
checkYcheckY {{#invoke:Factorization|factor|0}} <strong class="error">Error: 0 out of range</strong> <strong class="error">Error: 0 out of range</strong> <strong class="error">Error: 0 out of range</strong>
checkYcheckY {{#invoke:Factorization|factor|1}} <strong class="error">Error: 1 out of range</strong> <strong class="error">Error: 1 out of range</strong> <strong class="error">Error: 1 out of range</strong>
checkYcheckY {{#invoke:Factorization|factor|2}} 2 2 2
checkYcheckY {{#invoke:Factorization|factor|5}} 5 5 5
checkYcheckY {{#invoke:Factorization|factor|10}} 2 · 5 2 · 5 2 · 5
checkYcheckY {{#invoke:Factorization|factor|25}} 5<sup>2</sup> 5<sup>2</sup> 5<sup>2</sup>
checkYcheckY {{#invoke:Factorization|factor|40}} 2<sup>3</sup> · 5 2<sup>3</sup> · 5 2<sup>3</sup> · 5
checkYcheckY {{#invoke:Factorization|factor|111}} 3 · 37 3 · 37 3 · 37
checkYcheckY {{#invoke:Factorization|factor|999999999}} 3<sup>4</sup> · 37 · 333667 3<sup>4</sup> · 37 · 333667 3<sup>4</sup> · 37 · 333667
checkYcheckY {{#invoke:Factorization|factor|1000000001}} 7 · 11 · 13 · 19 · 52579 7 · 11 · 13 · 19 · 52579 7 · 11 · 13 · 19 · 52579
checkYcheckY {{#invoke:Factorization|factor|9007199254740992}} <strong class="error">Error: 9.007199254741e+15 out of range</strong> <strong class="error">Error: 9.007199254741e+15 out of range</strong> <strong class="error">Error: 9.007199254741e+15 out of range</strong>
checkYcheckY {{#invoke:Factorization|factor|4.5}} 2<sup>2</sup> 2<sup>2</sup> 2<sup>2</sup>
checkYcheckY {{#invoke:Factorization|factor|-9.9}} <strong class="error">Error: -10 out of range</strong> <strong class="error">Error: -10 out of range</strong> <strong class="error">Error: -10 out of range</strong>
checkYcheckY {{#invoke:Factorization|factor|20}} 2<sup>2</sup> · 5 2<sup>2</sup> · 5 2<sup>2</sup> · 5
checkYcheckY {{#invoke:Factorization|factor|20|product=×}} 2<sup>2</sup> × 5 2<sup>2</sup> × 5 2<sup>2</sup> × 5