# HG changeset patch
# User Patrik Svestka <patrik.svestka@gmail.com>
# Date 1544453348 -3600
# Mon Dec 10 15:49:08 2018 +0100
# Branch jv
# Node ID 8e0b72418799ccb1446265ac293e83d8cc87cfa4
# Parent f2cc4999618ab204c528c6af5e31a9cd677dbc10
Issue #250: Smalltak/X is reading Windows Registry only in ASCII but registry is UTF16
- fixed testReadValueNamed_nonStringValue to expect an Error to be raised
diff -r f2cc4999618a -r 8e0b72418799 RegressionTests__Win32OperatingSystemTest.st
a
|
b
|
|
852 | 852 | "Testing reading non-string value from Registry via valueNamed |
853 | 853 | User should see a warning message in Transcript" |
854 | 854 | |
855 | | | readData testingRegistryPath | |
| 855 | | testingRegistryPath | |
856 | 856 | |
857 | | readData := Unicode16String new. |
858 | 857 | testingRegistryPath := Win32OperatingSystem registryEntry key: registryPath. |
859 | | |
860 | | readData := testingRegistryPath valueNamed: 11. |
861 | | |
862 | | self assert: readData isNil. |
| 858 | |
| 859 | self should: [ testingRegistryPath valueNamed: 11 ] raise: Error |
863 | 860 | |
864 | 861 | " |
865 | 862 | self run:#testReadValueNamed_nonStringValue |
… |
… |
|
867 | 864 | " |
868 | 865 | |
869 | 866 | "Created: / 05-12-2018 / 12:40:31 / svestkap" |
| 867 | "Modified: / 10-12-2018 / 15:47:37 / svestkap" |
870 | 868 | ! ! |
871 | 869 | |
872 | 870 | !Win32OperatingSystemTest methodsFor:'tests-unicodeReadEnumeration'! |