Skip to content

Commit b45cb97

Browse files
committed
Added new test case
1 parent e18f913 commit b45cb97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Move_To_Front_Transform/Lua/Yonaba/mtf_test.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ run('Encoding string tests', function()
3434
assert(mtf.encode('') == '')
3535
assert(mtf.encode(' ') == '32.1.1.1.1')
3636
assert(mtf.encode('mtf') == '109.116.104')
37+
assert(mtf.encode('M.T.F.') == '77.47.84.2.72.2')
3738
end)
3839

3940
run('Decoding string tests', function()
@@ -42,6 +43,7 @@ run('Decoding string tests', function()
4243
assert(mtf.decode(mtf.encode(' ')) == ' ')
4344
assert(mtf.decode(mtf.encode('')) == '')
4445
assert(mtf.decode(mtf.encode('mtf')) == 'mtf')
46+
assert(mtf.decode(mtf.encode('M.T.F.')) == 'M.T.F.')
4547
end)
4648

4749
print(('-'):rep(80))

0 commit comments

Comments
 (0)