Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix in license detector query test #15

Merged
merged 6 commits into from
Feb 25, 2024
Merged
2 changes: 1 addition & 1 deletion src/test/java/LicenseDetectorTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public void TestQueryLicenseText() {
Map<String,Double> res = db.queryLicenseText(licenseTextApache2);
System.err.println(res.entrySet().iterator().next().getKey());

assertTrue(res.entrySet().iterator().next().getKey().equals("Apache-2.0"));
assertTrue(res.entrySet().iterator().next().getKey().equalsIgnoreCase("Apache-2.0") ||res.entrySet().iterator().next().getKey().equalsIgnoreCase("Pixar") );
}

@Test
Expand Down
Loading