Jump to content

Module talk:Format price/testcases

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

All 17 tests passed.

test_main
Text Expected Actual
checkY {{#invoke:Format price||123456.78|-2}} 123,500 123,500
checkY {{#invoke:Format price||123456.78|-1}} 123,460 123,460
checkY {{#invoke:Format price||123456.78|0}} 123,457 123,457
checkY {{#invoke:Format price||123456.78|1}} 123,457 123,457
checkY {{#invoke:Format price||123456.78|2}} 123,457 123,457
checkY {{#invoke:Format price||12.78|-2}} 0 0
checkY {{#invoke:Format price||12.78|-1}} 10 10
checkY {{#invoke:Format price||12.78|0}} 13 13
checkY {{#invoke:Format price||12.78|1}} 13 13
checkY {{#invoke:Format price||12.78|2}} 12.78 12.78
checkY {{#invoke:Format price||1234560.78|1}} 1.23 million 1.23 million
checkY {{#invoke:Format price||12345600.78|2}} 12.3 million 12.3 million
checkY {{#invoke:Format price||123456000.78|-2}} 123 million 123 million
checkY {{#invoke:Format price||1234560000.78|-1}} 1.23 billion 1.23 billion
checkY {{#invoke:Format price||12345600000.78|0}} 12.3 billion 12.3 billion
checkY {{#invoke:Format price||123456000000.78|0}} 123 billion 123 billion
checkY {{#invoke:Format price||1234560000000.78|0}} 1.23 trillion 1.23 trillion

Start a discussion about improving the Module:Format price/testcases page

Start a discussion