diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2021-01-12 00:16:29 -0800 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2021-01-12 00:16:29 -0800 |
commit | 9e1a145d23c313f8aa3b50986c331562542e8ba7 (patch) | |
tree | 9ace80d7d8ff8551313368357ef6e041bfc751b4 /test | |
parent | 030336b8584ccde5f7052f896c627643981b1dce (diff) | |
parent | 8b0e106ebdce0020a3b7863061feb6a3eabe0c3f (diff) |
Merge branch 'huglovefan-truncate'
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c index ad6c14d..aaff360 100644 --- a/test/test.c +++ b/test/test.c @@ -77,7 +77,11 @@ int main() { assert(strcmp(hi, "hi") == 0); fclose(console); } - + + // try to shorten the URL (#40) + assert(system("echo about:blank > ../fs/mnt/tabs/last-focused/url.txt") == 0); + assert(file_contents_equal("../fs/mnt/tabs/last-focused/url.txt", "about:blank")); + assert(system("echo remove > ../fs/mnt/tabs/last-focused/control") == 0); } |