Template:Inflation/testcases

From HandWiki
< Template:Inflation
Revision as of 07:07, 6 December 2020 by imported>Jworkorg (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Changes to data set

dependencies
Test cases for
UK TEST
A widget in 1900 was worth £90 (Approximately £9810 today) A widget in 1900 was worth £90 (Approximately £8245 today)
A widget in 1900 was worth £90 (Approximately £2271 in 1980) A widget in 1900 was worth £90 (Approximately £2271 in 1980)
A pre-decimal penny was worth in 1854 about the same as 39p today. A pre-decimal penny was worth in 1854 about the same as 33p today.[1]
This should be 1.031252968557 £1 in 2011 is worth approximately £1.03 today.

Errors

Template:Test case Template:Test case Template:Test case

Significant digits

Template:Test case Template:Test case Template:Test case Template:Test case Template:Test case Template:Test case

Equivalence

Template:Test case Template:Test case

Wrapping with Template:format price

  • Green tickY ${{Format price|{{Inflation|US-GDP|10000000000000|1900}}}}$259 trillion
  • Green tickY ${{Format price|{{Inflation|US-GDP|1000000|1990}}}}$1.76 million
  • Green tickY DM {{Format price|{{Inflation|DE|1000000|1957|1978}}}}DM 2.01 million
  • Green tickY £{{Format price|{{Inflation|UK-GDP|1000|1323}}}}£662 thousand

sandbox:

  • Green tickY ${{Format price|{{Inflation/sandbox|US-GDP|10000000000000|1900}}}}$NaN
  • Green tickY ${{Format price|{{Inflation/sandbox|US-GDP|1000000|1990}}}}$1.76 million
  • Green tickY DM {{Format price|{{Inflation/sandbox|DE|1000000|1957|1978}}}}DM 2.01 million
  • Green tickY £{{Format price|{{Inflation/sandbox|UK-GDP|1000|1323}}}}£662 thousand

Other test cases

Template:Test case

References

  1. UK Retail Price Index inflation figures are based on data from Clark, Gregory (2017). "The Annual RPI and Average Earnings for Britain, 1209 to Present (New Series)". MeasuringWorth. https://measuringworth.com/ukearncpi/. Retrieved February 2, 2020.