[tepl] File unit tests: more tests
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] File unit tests: more tests
- Date: Mon, 18 May 2020 17:22:05 +0000 (UTC)
commit e1fe0945cfae00b618f5c8c1ed91b3d6ffc9717e
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 18 18:39:01 2020 +0200
File unit tests: more tests
testsuite/test-file.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/testsuite/test-file.c b/testsuite/test-file.c
index d0efcb1..d320f0c 100644
--- a/testsuite/test-file.c
+++ b/testsuite/test-file.c
@@ -51,6 +51,10 @@ test_untitled_files (void)
file3 = tepl_file_new ();
check_short_name_is_untitled_file_number (file3, 1);
+ /* Reset location to NULL. */
+ tepl_file_set_location (file1, NULL);
+ check_short_name_is_untitled_file_number (file1, 3);
+
g_object_unref (file1);
g_object_unref (file2);
g_object_unref (file3);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]