Jump to content

Module talk:Ordnance Survey coordinates/testcases

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

All 73 tests passed.

test_direct
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates | main | SK135733|direct=1}} SK135733 SK135733
checkY [{{#invoke:Ordnance Survey coordinates | main | SK135733|rawurl=1|direct=1}}] [1] [2]
checkY {{#invoke:Ordnance Survey coordinates | main | SK135733_scale:25000|direct=1}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates | main | HU3966875316|direct=1}} HU3966875316 HU3966875316
checkY {{#invoke:Ordnance Survey coordinates | main | O169318|direct=1}} O169318 O169318
checkY {{#invoke:Ordnance Survey coordinates | main | 439668_1175316 | Crooksetter|direct=1}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates | main | name=Example title | 439668_1175316 | Crooksetter |direct=1}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates | main | 439668_1175316_region:GB-SCT_scale:25000 | Crooksetter|direct=1}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates | main | i88888_99999 | The Linbins|direct=1}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates | main | i88888_99999_scale:25000 | The Linbins|direct=1}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates | main | i88888_99999_scale:25000 | The Linbins | name=Example title|direct=1}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates | main | SK 135 733|direct=1}} SK 135 733 SK 135 733
checkY {{#invoke:Ordnance Survey coordinates | main | 123 TQ 456 | Bad|direct=1}} Bad Bad
checkY {{#invoke:Ordnance Survey coordinates | main | busted | Nowhere|direct=1}} Nowhere Nowhere
test_direct_sandbox
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | SK135733|direct=1}} SK135733 SK135733
checkY [{{#invoke:Ordnance Survey coordinates/sandbox | main | SK135733|rawurl=1|direct=1}}] [3] [4]
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | SK135733_scale:25000|direct=1}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | HU3966875316|direct=1}} HU3966875316 HU3966875316
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | O169318|direct=1}} O169318 O169318
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | 439668_1175316 | Crooksetter|direct=1}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | name=Example title | 439668_1175316 | Crooksetter |direct=1}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | 439668_1175316_region:GB-SCT_scale:25000 | Crooksetter|direct=1}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | i88888_99999 | The Linbins|direct=1}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | i88888_99999_scale:25000 | The Linbins|direct=1}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | i88888_99999_scale:25000 | The Linbins | name=Example title|direct=1}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | SK 135 733|direct=1}} SK 135 733 SK 135 733
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | 123 TQ 456 | Bad|direct=1}} Bad Bad
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | busted | Nowhere|direct=1}} Nowhere Nowhere
test_main
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates | main | SK135733}} SK135733 SK135733
checkY [{{#invoke:Ordnance Survey coordinates | main | SK135733|rawurl=1}}] [5] [6]
checkY {{#invoke:Ordnance Survey coordinates | main | SK135733_scale:25000}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates | main | HU3966875316}} HU3966875316 HU3966875316
checkY {{#invoke:Ordnance Survey coordinates | main | O169318}} O169318 O169318
checkY {{#invoke:Ordnance Survey coordinates | main | 439668_1175316 | Crooksetter}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates | main | name=Example title | 439668_1175316 | Crooksetter }} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates | main | 439668_1175316_region:GB-SCT_scale:25000 | Crooksetter}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates | main | i88888_99999 | The Linbins}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates | main | i88888_99999_scale:25000 | The Linbins}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates | main | i88888_99999_scale:25000 | The Linbins | name=Example title}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates | main | SK 135 733}} SK 135 733 SK 135 733
checkY {{#invoke:Ordnance Survey coordinates | main | 123 TQ 456 | Bad}} Bad Bad
checkY {{#invoke:Ordnance Survey coordinates | main | busted | Nowhere}} Nowhere Nowhere
test_main_sandbox
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | SK135733}} SK135733 SK135733
checkY [{{#invoke:Ordnance Survey coordinates/sandbox | main | SK135733|rawurl=1}}] [7] [8]
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | SK135733_scale:25000}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | O169318}} O169318 O169318
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | 439668_1175316 | Crooksetter}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | name=Example title | 439668_1175316 | Crooksetter }} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | 439668_1175316_region:GB-SCT_scale:25000 | Crooksetter}} Crooksetter Crooksetter
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | i88888_99999 | The Linbins}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | i88888_99999_scale:25000 | The Linbins}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | i88888_99999_scale:25000 | The Linbins | name=Example title}} The Linbins The Linbins
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | SK 135 733}} SK 135 733 SK 135 733
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | 123 TQ 456 | Bad}} Bad Bad
checkY {{#invoke:Ordnance Survey coordinates/sandbox | main | busted | Nowhere}} Nowhere Nowhere
test_oscoord
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates | oscoord | SK135733}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates | oscoord | SK135733_scale:25000}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates | oscoord | O169318}} O169318 O169318
test_oscoord_sandbox
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates/sandbox | oscoord | SK135733}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates/sandbox | oscoord | SK135733_scale:25000}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates/sandbox | oscoord | O169318}} O169318 O169318
test_to_osgb
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates | WGS2OSGB | 53.256538 | -1.799102 }} SK1350073300 SK1350073300
checkY {{#invoke:Ordnance Survey coordinates | WGS2OSGB | 53.256538 | -1.799102 | 3}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates | WGS2OSGB | 60.459657 | -1.280627 }} HU3966875316 HU3966875316
checkY {{#invoke:Ordnance Survey coordinates | LL2OS | 53.256538 | -1.799102 }} SK1350073300 SK1350073300
checkY {{#invoke:Ordnance Survey coordinates | LL2OS | 53.256538 | -1.799102 | scale:25000 |prec=3}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates | LL2OS | 53.256538 | -1.799102 | scale:25000 |prec=3|name=name}} SK135733 SK135733
test_to_osgb_sandbox
Text Expected Actual
checkY {{#invoke:Ordnance Survey coordinates/sandbox | WGS2OSGB | 53.256538 | -1.799102 }} SK1350073300 SK1350073300
checkY {{#invoke:Ordnance Survey coordinates/sandbox | WGS2OSGB | 53.256538 | -1.799102 | 3}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates/sandbox | WGS2OSGB | 60.459657 | -1.280627 }} HU3966875316 HU3966875316
checkY {{#invoke:Ordnance Survey coordinates/sandbox | LL2OS | 53.256538 | -1.799102 }} SK1350073300 SK1350073300
checkY {{#invoke:Ordnance Survey coordinates | LL2OS | 53.256538 | -1.799102 | scale:25000 |prec=3}} SK135733 SK135733
checkY {{#invoke:Ordnance Survey coordinates | LL2OS | 53.256538 | -1.799102 | scale:25000 |prec=3|name=name}} SK135733 SK135733

Start a discussion about improving the Module:Ordnance Survey coordinates/testcases page

Start a discussion