InterpretInputStrings Mon Apr 24 2017 08:47:31 GMT+0100 (BST)
Number failed: 0Number passed:80File: /Servers/htdocs/test/2013/js/day/tests/scripts//InterpretInputStrings.testScript
LineTestExpectedActualComment
# EXERCISING THE InterpretString() function
# ----------------------------------------
# Assuming appendix is en-gb.dax
# Three letter month names which should work
7INTERPRETSTRING(Jan)1
8INTERPRETSTRING(Feb)2
9INTERPRETSTRING(Mar)3
10INTERPRETSTRING(Apr)4
11INTERPRETSTRING(May)5
12INTERPRETSTRING(Jun)6
13INTERPRETSTRING(Jly)7
14INTERPRETSTRING(Jul)7 input hack
15INTERPRETSTRING(Aug)8
16INTERPRETSTRING(Sep)9
17INTERPRETSTRING(Oct)10
18INTERPRETSTRING(Nov)11
19INTERPRETSTRING(Dec)12
# one and two month names
22INTERPRETSTRING(ja)1
23INTERPRETSTRING(fe)2
24INTERPRETSTRING(f)2
25INTERPRETSTRING(Mr)3
26INTERPRETSTRING(ap)4
27INTERPRETSTRING(my)5
28INTERPRETSTRING(ju)6
29INTERPRETSTRING(jy)7
30INTERPRETSTRING(au)8
31INTERPRETSTRING(se)9
32INTERPRETSTRING(s)9
33INTERPRETSTRING(oc)10
34INTERPRETSTRING(o)10
35INTERPRETSTRING(Nov)11
36INTERPRETSTRING(No)NV No is part of Not Valid->NV
# partial month names
40INTERPRETSTRING(octo)10
41INTERPRETSTRING(octob)10
42INTERPRETSTRING(octobe)10
43INTERPRETSTRING(october)10
44INTERPRETSTRING(octoberX!!!)10 works!
# Specific terms which should work
48INTERPRETSTRING(Today)TODAY
49INTERPRETSTRING(Tod)TODAY
50INTERPRETSTRING(T)TODAY
51INTERPRETSTRING(B)BoT
52INTERPRETSTRING(Beg)BoT
53INTERPRETSTRING(Bot)BoT
54INTERPRETSTRING(bot)BoT
55INTERPRETSTRING(BoT)BoT
56INTERPRETSTRING(E)EoT
57INTERPRETSTRING(NK)NK input hack
58INTERPRETSTRING(Not known)NK input hack
59INTERPRETSTRING(U)NK
60INTERPRETSTRING(Un)NK
61INTERPRETSTRING(UnkN)NK
62INTERPRETSTRING(UnnkOWN)NK
63INTERPRETSTRING(!)NV
64INTERPRETSTRING(NV)NV
65INTERPRETSTRING(Not valid)NV
66INTERPRETSTRING(Not)NV
67INTERPRETSTRING(Invalid)NVI
68INTERPRETSTRING(Inv)NVI
69INTERPRETSTRING(X)NVI
# should all return 0 (not recognised)
72INTERPRETSTRING()BoT this is not a real case as we won't be passing
null strings
73INTERPRETSTRING(a)
74INTERPRETSTRING(c)
75INTERPRETSTRING(g)
76INTERPRETSTRING(h)
77INTERPRETSTRING(j)
78INTERPRETSTRING(k)
79INTERPRETSTRING(l)
80INTERPRETSTRING(m)
81INTERPRETSTRING(p)
82INTERPRETSTRING(q)
83INTERPRETSTRING(r)
84INTERPRETSTRING(v)
85INTERPRETSTRING(w)
86INTERPRETSTRING(y)
87INTERPRETSTRING(z)
88INTERPRETSTRING(1)
89INTERPRETSTRING(2)
90INTERPRETSTRING(3)
91INTERPRETSTRING(33)
92INTERPRETSTRING(12Oct)
93INTERPRETSTRING($)
94INTERPRETSTRING(%)
95INTERPRETSTRING(*)
96INTERPRETSTRING(-)