summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-12 12:21:22 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-12 12:21:22 +1000
commitc743cab4f0b74e928496c2a5052906da52acc8f7 (patch)
tree6bd632ffb7b8aabce7f2ec8ae79b83976b4bb0e3 /tests
parent02325547f4e82c7fec2404b024a57b3e7efc99f0 (diff)
tests: Add a test for sequence order.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_sequences.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_sequences.py b/tests/test_sequences.py
index 7a21c11..8034da7 100755
--- a/tests/test_sequences.py
+++ b/tests/test_sequences.py
@@ -34,6 +34,13 @@ class Testsequences(unittest.TestCase):
result = sequences.set_iterm_tab_color(COLORS["special"]["background"])
self.assertEqual(len(result), 104)
+ def test_sequence_order(self):
+ """> Test that the sequences are in order."""
+ result = sequences.create_sequences(COLORS, vte=False).split("\007")
+ self.assertEqual(result[2], "\x1b]4;2;#CC6A93")
+ self.assertEqual(result[15], "\x1b]4;15;#F5F1F4")
+ self.assertEqual(result[8], "\x1b]4;8;#666666")
+
if __name__ == "__main__":
unittest.main()