()
| 1098 | } |
| 1099 | #[test] |
| 1100 | fn test_unit() { |
| 1101 | let unit = to_value(TestCompoundTypes::Unit).unwrap(); |
| 1102 | let expected: Value = "Unit".into(); |
| 1103 | let program = Program::compile("test == expected").unwrap(); |
| 1104 | let mut context = Context::default(); |
| 1105 | context.add_variable("expected", expected).unwrap(); |
| 1106 | context.add_variable("test", unit).unwrap(); |
| 1107 | let value = program.execute(&context).unwrap(); |
| 1108 | assert_eq!(value, true.into()) |
| 1109 | } |
| 1110 | #[test] |
| 1111 | fn test_newtype() { |
| 1112 | let newtype = to_value(TestCompoundTypes::Newtype(32)).unwrap(); |
nothing calls this directly
no test coverage detected