MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_concat

Method test_concat

Lib/test/test_operator.py:154–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 self.assertEqual(operator.and_(0xf, 0xa), 0xa)
153
154 def test_concat(self):
155 operator = self.module
156 self.assertRaises(TypeError, operator.concat)
157 self.assertRaises(TypeError, operator.concat, None, None)
158 self.assertEqual(operator.concat('py', 'thon'), 'python')
159 self.assertEqual(operator.concat([1, 2], [3, 4]), [1, 2, 3, 4])
160 self.assertEqual(operator.concat(Seq1([5, 6]), Seq1([7])), [5, 6, 7])
161 self.assertEqual(operator.concat(Seq2([5, 6]), Seq2([7])), [5, 6, 7])
162 self.assertRaises(TypeError, operator.concat, 13, 29)
163
164 def test_countOf(self):
165 operator = self.module

Callers

nothing calls this directly

Calls 5

Seq1Class · 0.85
Seq2Class · 0.85
assertRaisesMethod · 0.45
assertEqualMethod · 0.45
concatMethod · 0.45

Tested by

no test coverage detected