| 29 | #include <rob.hpp> |
| 30 | |
| 31 | TEST_CASE(simple_test) |
| 32 | { |
| 33 | migraphx::program p; |
| 34 | auto* mm = p.get_main_module(); |
| 35 | auto one = mm->add_literal(1); |
| 36 | auto two = mm->add_literal(2); |
| 37 | mm->add_instruction(migraphx::make_op("add"), one, two); |
| 38 | EXPECT(mm->validate() == mm->end()); |
| 39 | auto result = p.eval({}); |
| 40 | EXPECT(result.back() == migraphx::literal{3}); |
| 41 | EXPECT(result.back() != migraphx::literal{4}); |
| 42 | } |
| 43 | |
| 44 | TEST_CASE(out_of_order) |
| 45 | { |
nothing calls this directly
no test coverage detected