Skip to content

Commit edd25f3

Browse files
committed
Fix test_cpp_enum on Windows due to underlying enum type change
1 parent 0c794c9 commit edd25f3

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

cpp/codegen/from_test.odin

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,7 @@ test_cpp_enum :: proc(t: ^testing.T) {
254254
expect_value(t, abc_enum.entries[0].name, "A")
255255
expect_value(t, abc_enum.entries[1].name, "B")
256256
expect_value(t, abc_enum.entries[2].name, "C")
257-
if host.os == .Windows {
258-
expect_value(t, abc_enum.type, runic.Builtin.SInt32)
259-
} else {
260-
expect_value(t, abc_enum.type, runic.Builtin.UInt32)
261-
}
257+
expect_value(t, abc_enum.type, runic.Builtin.UInt32)
262258

263259
expect_value(t, abc_enum.entries[0].value.(i64), 0)
264260
expect_value(t, abc_enum.entries[1].value.(i64), 1)
@@ -271,11 +267,7 @@ test_cpp_enum :: proc(t: ^testing.T) {
271267
expect_value(t, cba_enum.entries[0].name, "M")
272268
expect_value(t, cba_enum.entries[1].name, "H")
273269
expect_value(t, cba_enum.entries[2].name, "N")
274-
if host.os == .Windows {
275-
expect_value(t, cba_enum.type, runic.Builtin.SInt32)
276-
} else {
277-
expect_value(t, cba_enum.type, runic.Builtin.UInt32)
278-
}
270+
expect_value(t, cba_enum.type, runic.Builtin.UInt32)
279271

280272
expect_value(t, cba_enum.entries[0].value.(i64), 0)
281273
expect_value(t, cba_enum.entries[1].value.(i64), 1)

0 commit comments

Comments
 (0)