1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-12-23 07:48:50 -05:00
Simba/Tests/PS/settings_test.simba
2010-04-09 22:02:20 +02:00

18 lines
548 B
Plaintext

program new;
begin
SettingsGetSetDefaultKeyValue('Kanker/wat', 'YO WAT');
SettingsGetSetDefaultKeyValue('Kanker/wat2', 'YO WAT2');
writeln(SettingsGetKeyValue('Kanker/wat'));
if SettingsIsDirectory('Kanker') then
writeln('Kanker has at least one child!');
if SettingsIsKey('Kanker/wat') then
writeln('wat exists!');
SettingsDeleteKey('Kanker/wat');
writeln(SettingsGetKeyValue('Kanker/wat2'));
writeln(SettingsGetKeyValue('Kanker/wat'));
SettingsDeleteSubKeys('Kanker');
if SettingsIsKey('Kanker') then
writeln('kanker is a key now!');
end.