Fara í innihald

Module talk:Hnit/testcases

Innihald síðu er ekki stutt á öðrum tungumálum.
Úr Wikipediu, frjálsa alfræðiritinu

16 tests failed.

test_coord
Text Expected Actual
{{#invoke:Hnit/sandbox|coord|57|18|22|N|4|27|32|W}} 57°18′22″N 4°27′32″V / 57.30611°N 4.45889°V / 57.30611; -4.45889 57°18′22″N 4°27′32″V / 57.30611°N 4.45889°V / 57.30611; -4.45889
{{#invoke:Hnit/sandbox|coord|57|18|22|N|4|27|32|V}} 57°18′22″N 4°27′32″V / 57.30611°N 4.45889°V / 57.30611; -4.45889 57°18′22″N 4°27′32″V / 57.30611°N 4.45889°V / 57.30611; -4.45889
{{#invoke:Hnit/sandbox|coord|57|18|N|4|27|V}} 57°18′N 4°27′V / 57.300°N 4.450°V / 57.300; -4.450 57°18′N 4°27′V / 57.300°N 4.450°V / 57.300; -4.450
{{#invoke:Hnit/sandbox|coord|57|N|4|V}} 57°N 4°V / 57°N 4°V / 57; -4 57°N 4°V / 57°N 4°V / 57; -4
{{#invoke:Hnit/sandbox|coord|44.112|-87.913}} 44°06′43″N 87°54′47″V / 44.112°N 87.913°V / 44.112; -87.913 44°06′43″N 87°54′47″V / 44.112°N 87.913°V / 44.112; -87.913
{{#invoke:Hnit/sandbox|coord|44.117|-87.913|dim:30_region:US-WI_type:landmark|name=Klann Road}} 44°07′01″N 87°54′47″V / 44.117°N 87.913°V / 44.117; -87.913 (Klann Road) 44°07′01″N 87°54′47″V / 44.117°N 87.913°V / 44.117; -87.913 (Klann Road)
{{#invoke:Hnit/sandbox|coord|10.2|-20.3|display=inline}} 10°12′N 20°18′V / 10.2°N 20.3°V / 10.2; -20.3 10°12′N 20°18′V / 10.2°N 20.3°V / 10.2; -20.3
{{#invoke:Hnit/sandbox|coord|55.752222|N|37.615556|E|format=dms}} 55°45′08″N 37°36′56″A / 55.752222°N 37.615556°A / 55.752222; 37.615556 55°45′08″N 37°36′56″A / 55.752222°N 37.615556°A / 55.752222; 37.615556
{{#invoke:Hnit/sandbox|coord|39.098095|-94.587307|format=dms}} 39°05′53″N 94°35′14″V / 39.098095°N 94.587307°V / 39.098095; -94.587307 39°05′53″N 94°35′14″V / 39.098095°N 94.587307°V / 39.098095; -94.587307
{{#invoke:Hnit/sandbox|coord|55.752222|N|37.615556|E|format=dec|name=Moscow}} 55°45′08″N 37°36′56″A / 55.752222°N 37.615556°A / 55.752222; 37.615556 (Moscow) 55°45′08″N 37°36′56″A / 55.752222°N 37.615556°A / 55.752222; 37.615556 (Moscow)
{{#invoke:Hnit/sandbox|coord|-20.4|-20.4|name=Test case SW-1c: -20.4d -20.4d (-20.4, -20.4)}} 20°24′S 20°24′V / 20.4°S 20.4°V / -20.4; -20.4 (Test case SW-1c: -20.4d -20.4d (-20.4, -20.4)) 20°24′S 20°24′V / 20.4°S 20.4°V / -20.4; -20.4 (Test case SW-1c: -20.4d -20.4d (-20.4, -20.4))
{{#invoke:Hnit/sandbox|coord|1|2|globe=moon|name=Test case globe= dec}} 1°N 2°A / 1°N 2°A / 1; 2 (Test case globe= dec) Hnit: Gildið "globe=" ætti að vera "globe:"
1°N 2°A / 1°N 2°A / 1; 2 (Test case globe= dec) Hnit: Gildið "globe=" ætti að vera "globe:"
{{#invoke:Hnit/sandbox|coord|1|2|3|4}} Hnit: Óþekkt form gildis
Hnit: Óþekkt form gildis
{{#invoke:Hnit/sandbox|coord|1|2|3|E|4|5|6|N}} 4°5′6″N 1°2′3″A / 4.08500°N 1.03417°A / 4.08500; 1.03417 4°5′6″N 1°2′3″A / 4.08500°N 1.03417°A / 4.08500; 1.03417
{{#invoke:Hnit/sandbox|coord|1|2||N|5|6||E|name=Test case DMS blank S}} 1°2′N 5°6′A / 1.033°N 5.100°A / 1.033; 5.100 (Test case DMS blank S) 1°2′N 5°6′A / 1.033°N 5.100°A / 1.033; 5.100 (Test case DMS blank S)
{{#invoke:Hnit/sandbox|coord| 51 | 02 | 21 |N| 116 | 26 | 34 |W|name=Test case extra blanks}} 51°02′21″N 116°26′34″V / 51.03917°N 116.44278°V / 51.03917; -116.44278 (Test case extra blanks) 51°02′21″N 116°26′34″V / 51.03917°N 116.44278°V / 51.03917; -116.44278 (Test case extra blanks)
test_coord2text
Text Expected Actual
{{#invoke:Hnit/sandbox|coord2text|{{Hnit/sandbox|57|18|22|N|4|27|32|E|display=inline}}|lat}} 57.30611 57.30611
{{#invoke:Hnit/sandbox|coord2text|{{Hnit/sandbox|57|18|22|N|4|27|32|E|display=inline}}|long}} 4.45889 4.45889
{{#invoke:Hnit/sandbox|coord2text|{{Hnit/sandbox|57|18|22|N|4|27|32|A|display=inline}}|lat}} 57.30611 57.30611
{{#invoke:Hnit/sandbox|coord2text|{{Hnit/sandbox|57|18|22|N|4|27|32|A|display=inline}}|long}} 4.45889 4.45889

Byrja umræðu um Module:Hnit/testcases

Byrja nýja umræðu