1. Martin von Löwis
  2. xist-3k

Commits

Walter Dörwald  committed 043cede

Add colors to the tests for the contains opcode.

  • Participants
  • Parent commits 4d6e1b3
  • Branches default

Comments (0)

Files changed (1)

File test/test_ul4.py

View file
  • Ignore whitespace
 		assert "False" == r(code, x="un", y="gurk")
 		assert "True" == r(code, x="a", y={"a": 1, "b": 2})
 		assert "False" == r(code, x="c", y={"a": 1, "b": 2})
+		assert "True" == r(code, x=0xff, y=color.Color(0x00, 0x80, 0xff, 0x42))
+		assert "False" == r(code, x=0x23, y=color.Color(0x00, 0x80, 0xff, 0x42))
 
 
 def test_notcontains():
 		assert "True" == r(code, x="un", y="gurk")
 		assert "False" == r(code, x="a", y={"a": 1, "b": 2})
 		assert "True" == r(code, x="c", y={"a": 1, "b": 2})
+		assert "False" == r(code, x=0xff, y=color.Color(0x00, 0x80, 0xff, 0x42))
+		assert "True" == r(code, x=0x23, y=color.Color(0x00, 0x80, 0xff, 0x42))
 
 
 def test_and():