Differences From Artifact [2e376a1388]:
- File tests/natools-smaz_tests.adb — part of check-in [8f0534e6a4] at 2017-01-02 20:22:44 on branch trunk — smaz_tests: ASCIIfy the base-64 dictionary, to make it more portable (user: nat, size: 12086) [annotate] [blame] [check-ins using]
To Artifact [897c0b23ae]:
- File tests/natools-smaz_tests.adb — part of check-in [03f59a962d] at 2017-01-03 20:41:47 on branch trunk — smaz_tests: add a check with non-ASCII characters (user: nat, size: 12368) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
59 60 61 62 63 64 65 | 24, 25, 26, 28, 30, 31, 32, 36, 38, 40, 42, 44, 45, 47, 49, 51, 53, 56, 60, 63, 65, 68, 70, 72, 74, 76, 80, 82, 84, 88, 90, 92, 94, 98, 101, 102, 103, 105, 111, 112, 114, 115, 118), Values => " ee stainruos l dt enescm p" & Character'Val (16#C3#) & Character'Val (16#A9#) & "pd de lere ld" & "e" & LF & "on cqumede mentes aiquen teerou r sque , is m q" | | | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | 24, 25, 26, 28, 30, 31, 32, 36, 38, 40, 42, 44, 45, 47, 49, 51, 53, 56, 60, 63, 65, 68, 70, 72, 74, 76, 80, 82, 84, 88, 90, 92, 94, 98, 101, 102, 103, 105, 111, 112, 114, 115, 118), Values => " ee stainruos l dt enescm p" & Character'Val (16#C3#) & Character'Val (16#A9#) & "pd de lere ld" & "e" & LF & "on cqumede mentes aiquen teerou r sque , is m q" & "ue" & Character'Val (16#C3#) & Character'Val (16#A0#) & " v'tiweblogfanj." & LF & LF & "ch", Hash => Natools.Smaz_Test_Base_64_Hash.Hash'Access); ------------------------------ -- Local Helper Subprograms -- |
︙ | ︙ | |||
309 310 311 312 313 314 315 316 317 318 319 320 321 322 | To_SEA ("090kTgIWenLK3NFEFAEKs/Ao92dAFAzo+iBF1SepHOvDJB0")); -- '<49 by >tsof_ata_to_< how>_a_ve<b>atm_ontisue' -- e_ d s r i cu _s -- 49 001011_00 1001_1100 10 -- by 000001_00 0100_0110 10_011110 -- how 000101_10 1111_0110 11_101110 --- b 010001_10 0000 exception when Error : others => Test.Report_Exception (Error); end Sample_Strings_64; procedure Test_Validity_64 (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Test dictionary validity"); | > > > > > > | 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 | To_SEA ("090kTgIWenLK3NFEFAEKs/Ao92dAFAzo+iBF1SepHOvDJB0")); -- '<49 by >tsof_ata_to_< how>_a_ve<b>atm_ontisue' -- e_ d s r i cu _s -- 49 001011_00 1001_1100 10 -- by 000001_00 0100_0110 10_011110 -- how 000101_10 1111_0110 11_101110 --- b 010001_10 0000 Roundtrip_Test (Test, Dict_64, Character'Val (16#C3#) & Character'Val (16#A9#) & 'v' & Character'Val (16#C3#) & Character'Val (16#A8#) & "nement", To_SEA ("Uz9DjKHBi")); -- év<è >nement -- è 110000_11 0001_0101 00 exception when Error : others => Test.Report_Exception (Error); end Sample_Strings_64; procedure Test_Validity_64 (Report : in out NT.Reporter'Class) is Test : NT.Test := Report.Item ("Test dictionary validity"); |
︙ | ︙ |