| 1 | type StrAlias = string |
| 2 | |
| 3 | fn test_alias_left_eq() { |
| 4 | assert StrAlias('test') == 'test' |
| 5 | } |
| 6 | |
| 7 | fn test_alias_right_eq() { |
| 8 | assert 'test' == StrAlias('test') |
| 9 | } |
| 10 | |
| 11 | fn test_alias_left_ne() { |
| 12 | assert StrAlias('test') != 'test2' |
| 13 | } |
| 14 | |
| 15 | fn test_alias_right_ne() { |
| 16 | assert 'test' != StrAlias('test2') |
| 17 | } |
| 18 |