()
| 21 | |
| 22 | |
| 23 | def test_source_str_function() -> None: |
| 24 | x = Source("3") |
| 25 | assert str(x) == "3" |
| 26 | |
| 27 | x = Source(" 3") |
| 28 | assert str(x) == "3" |
| 29 | |
| 30 | x = Source( |
| 31 | """ |
| 32 | 3 |
| 33 | """ |
| 34 | ) |
| 35 | assert str(x) == "\n3" |
| 36 | |
| 37 | |
| 38 | def test_source_from_function() -> None: |