@@ -9,15 +9,19 @@ TEST_CASE("User-friendly compiler API", "[user_api]")
99 SECTION (" Easy compiler checking" )
1010 {
1111 // Simple check if compiler is working
12- bool working = is_compiler_working ();
12+ CompilerInfo info = get_compiler_info (resolve_compiler_path ());
13+ REQUIRE (info.is_available );
14+ REQUIRE (info.could_compile );
15+ REQUIRE (info.could_load );
16+ bool working = info.verified_result ;
1317 REQUIRE (working == true ); // Should be true since tests are passing
1418
1519 std::cout << " Compiler working: " << (working ? " YES" : " NO" ) << std::endl;
1620 }
1721
18- SECTION (" Get recommended compiler" )
22+ SECTION (" Resolve compiler" )
1923 {
20- std::string recommended = get_recommended_compiler ();
24+ std::string recommended = resolve_compiler_path ();
2125 REQUIRE (!recommended.empty ());
2226
2327 std::cout << " Recommended compiler: " << recommended << std::endl;
@@ -26,11 +30,11 @@ TEST_CASE("User-friendly compiler API", "[user_api]")
2630 SECTION (" Test specific compiler" )
2731 {
2832 // Test the current compiler
29- CompilerInfo info = test_compiler (symx::resolve_compiler_path ());
33+ CompilerInfo info = get_compiler_info (symx::resolve_compiler_path ());
3034 REQUIRE (info.is_available == true );
3135
3236 // Test a bad compiler
33- CompilerInfo bad_info = test_compiler (" nonexistent_compiler" );
37+ CompilerInfo bad_info = get_compiler_info (" nonexistent_compiler" );
3438 REQUIRE (bad_info.is_available == false );
3539
3640 std::cout << " Current compiler test: " << (info.is_available ? " PASS" : " FAIL" ) << std::endl;
@@ -40,7 +44,7 @@ TEST_CASE("User-friendly compiler API", "[user_api]")
4044 SECTION (" Comprehensive check (visual test)" )
4145 {
4246 std::cout << " \n === User-Friendly Compiler Check ===" << std::endl;
43- check_compiler_setup ();
47+ print_compiler_diagnostics ();
4448 std::cout << " ===================================" << std::endl;
4549 }
4650}
0 commit comments