summaryrefslogtreecommitdiff
path: root/tests/keyfile-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Add some tests for invalid floating point numbers.Matthias Clasen2006-05-081-1/+17
| | | | | | | 2006-05-08 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_number): Add some tests for invalid floating point numbers.
* Add a test for the previous change.Matthias Clasen2006-04-261-0/+6
| | | | | | | 2006-04-25 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_comments): Add a test for the previous change.
* Add api to get and set doubles and lists of doubles. (#164719, MaurizioMatthias Clasen2006-04-191-4/+76
| | | | | | | | | | | 2006-04-18 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.h: * glib/glib.symbols: * glib/gkeyfile.c: Add api to get and set doubles and lists of doubles. (#164719, Maurizio Monge, Dom Lachowicz) * tests/keyfile-test.c: Add tests for new api.
* Accept duplicate groups. (#157877, Sebastien Bacher)Matthias Clasen2006-04-191-0/+33
| | | | | | | | | | 2006-04-18 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_add_group): Accept duplicate groups. (#157877, Sebastien Bacher) * tests/keyfile-test.c: Add tests for duplicate key and duplicate group handling.
* Add bug refMatthias Clasen2005-09-141-19/+21
|
* Add a test for grup names of length 1.Matthias Clasen2005-09-141-0/+20
| | | | | | | | | 2005-09-14 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c: Add a test for grup names of length 1. * glib/gkeyfile.c (g_key_file_line_is_group): Accept group names of length 1. (#316309)
* Don't reverse the order of multiline comments.Matthias Clasen2005-07-011-7/+46
| | | | | | | | | | | | 2005-07-01 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_get_key_comment): (g_key_file_get_top_comment): Don't reverse the order of multiline comments. (g_key_file_get_group_comment): Actually get the group comment. * tests/keyfile-test.c (test_comments): Test that comments are handled properly. (#309263, Mikael Magnusson)
* Test that comments are handled properly. (#309263, Mikael Magnusson)Matthias Clasen2005-07-011-0/+44
| | | | | | | 2005-07-01 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_comments): Test that comments are handled properly. (#309263, Mikael Magnusson)
* Don't leak memory here.Matthias Clasen2005-06-231-0/+6
| | | | | | | | | | 2005-06-23 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_group_remove): Don't leak memory here. * glib/gkeyfile.c (g_key_file_load_from_data_dirs): Don't leak output_path. (#308546, Kjartan Maraas)
* Set LANGUAGE instead of LC_ALL to shield against LANGUAGE being set in theMatthias Clasen2005-02-241-1/+1
| | | | | | | | 2005-02-23 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_locale_string): Set LANGUAGE instead of LC_ALL to shield against LANGUAGE being set in the environment. (#168311, Suren A. Chilingaryan)
* Add test case for key removal.Matthias Clasen2005-02-021-65/+100
| | | | | | | | | | 2005-02-01 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_key_remove): Add test case for key removal. * glib/gkeyfile.c (g_key_file_remove_key): Actually remove the key from the list of pairs. (#165980, David Hoover)
* Add test case for group removal.Matthias Clasen2005-02-011-0/+70
| | | | | | | | | | 2005-02-01 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c (test_group_remove): Add test case for group removal. * glib/gkeyfile.c (g_key_file_remove_group): Don't segfault if the group doesn't exist. (#165887, Mathias Hasselmann)
* Some more unit tests.Matthias Clasen2005-01-301-8/+273
| | | | | | 2005-01-30 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c: Some more unit tests.
* Don't interpret leading zeros as octal. The specification requires %fMatthias Clasen2005-01-201-1/+65
| | | | | | | | | | 2005-01-20 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_parse_value_as_integer): Don't interpret leading zeros as octal. The specification requires %f parsing, and %f doesn't allow octal. * tests/keyfile-test.c: Add some more tests.
* Add some more tests.Matthias Clasen2005-01-201-7/+265
| | | | | | | | | | 2005-01-20 Matthias Clasen <mclasen@redhat.com> * tests/keyfile-test.c: Add some more tests. * glib/gkeyfile.c (g_key_file_get_keys): Return keys in the order found in the file, rather than the opposite. (g_key_file_parse_value_as_string): Fix error reporting.
* Accept \r\n as line end. (#163030, Bastian Nocera)Matthias Clasen2005-01-191-0/+98
2005-01-19 Matthias Clasen <mclasen@redhat.com> * glib/gkeyfile.c (g_key_file_parse_data): Accept \r\n as line end. (#163030, Bastian Nocera) (g_key_file_load_from_data): Make -1 work as a size. * tests/keyfile-test.c: Some unit tests for the keyfile parser. * tests/Makefile.am (test_programs): Add keyfile-test.