X-Git-Url: http://jaekl.net/gitweb/?p=quanlib.git;a=blobdiff_plain;f=store_test.rb;fp=store_test.rb;h=0000000000000000000000000000000000000000;hp=301be76a5f84c70f87f808086e0ba091a65540fc;hb=2122d68f0408b8471f9dedd9998ecf890a90f703;hpb=fdec41cd77b54d7840887c39af738108d02aa2e9 diff --git a/store_test.rb b/store_test.rb deleted file mode 100644 index 301be76..0000000 --- a/store_test.rb +++ /dev/null @@ -1,21 +0,0 @@ - -require 'minitest/autorun' -require 'store' - -class StoreTest < MiniTest::Test - def test_construct_efs_path - data = [ [ 1234, '00/00/00/12', '0000001234.dat'], - [ 1, '00/00/00/00', '0000000001.dat'], - [1234567890, '12/34/56/78', '1234567890.dat'], - [ 7778123, '00/07/77/81', '0007778123.dat'], - [ 0x1b, '00/00/00/00', '0000000027.dat'] ] - - store = Store.new() - - for (input, expectedPath, expectedName) in data - (actualPath, actualName) = store.construct_efs_path(input) - assert_equal(expectedPath, actualPath) - assert_equal(expectedName, actualName) - end - end -end