Skip to content

Commit

Permalink
Update platform_id_tests.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Dec 10, 2023
1 parent bb639bd commit 7264130
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,14 @@ namespace xtd::tests {
assert::are_equal(platform_id::watchos, enum_object<>::parse<platform_id>("watchos"), csf_);
}

void test_method_(free_bsd) {
assert::are_equal(12, enum_object<>::to_int32(platform_id::free_bsd), csf_);
assert::are_equal("free_bsd", enum_object<>::to_string(platform_id::free_bsd), csf_);
assert::are_equal(platform_id::free_bsd, enum_object<>::parse<platform_id>("free_bsd"), csf_);
}

void test_method_(other) {
assert::are_equal(12, enum_object<>::to_int32(platform_id::other), csf_);
assert::are_equal(0x0FFFFFFF, enum_object<>::to_int32(platform_id::other), csf_);
assert::are_equal("other", enum_object<>::to_string(platform_id::other), csf_);
assert::are_equal(platform_id::other, enum_object<>::parse<platform_id>("other"), csf_);
}
Expand Down

0 comments on commit 7264130

Please sign in to comment.