Skip to content

Commit

Permalink
Continue pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Aug 13, 2024
1 parent edd56f5 commit 23d6933
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ jobs:
distribution: corretto
os: macos-latest
- version: 15
distribution: dargonwell
os: ubuntu-latest
distribution: dragonwell
- version: 15
distribution: semeru
- version: 16
Expand Down
12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ Olivia's Project Euler Solutions
+------------+--------------------------+--------+-------------------+
| JavaScript | Node 12+ |br| | 25 | |JavaScript| |br| |
| | Bun 1.0+ |br| | | |Js-Cov| |br| |
| | Firefox [2]_ |br| | | |CodeQL| |br| |
| | Chrome [2]_ | | |ESLint| |
| | Browser [2]_ | | |CodeQL| |br| |
| | | | |ESLint| |
+------------+--------------------------+--------+-------------------+
| Python | CPython 3.6+ |br| | 79 | |Python| |br| |
| | Pypy 3.6+ |br| | | |Py-Cov| |br| |
| | GraalPy 23.1+ |br| | | |CodeQL| |br| |
| | Pyodide 0.26.2+ [3]_ | | |PythonLint| |
| | Browser [3]_ | | |PythonLint| |
+------------+--------------------------+--------+-------------------+
| Rust | 1.69+ | 28 | |Rust| |br| |
| | | | |Rs-Cov| |br| |
Expand All @@ -102,9 +102,9 @@ Olivia's Project Euler Solutions
<a href="https://euler.oliviaappleton.com/_static/test-py.html" target="_blank">click here!</a>

.. [1] This is the earliest standard the MSVC explicitly supports.
.. [2] While these solutions do run on Chrome and Firefox, they need to be bundled with WebPack + Babel first, and
these tests not yet automated as in Nodejs and Bun. To run these tests yourself, |test-js-link|
.. [3] While these solutions do run on Chrome and Firefox, they need to be bundled with Pyodide first, and these
.. [2] While these solutions do run in most browsers, they need to be bundled with WebPack 5.93+ & Babel 7.25+ first,
and these tests not yet automated as in Nodejs and Bun. To run these tests yourself, |test-js-link|
.. [3] While these solutions do run in most browsers, they need to be bundled with Pyodide 0.26.2+ first, and these
tests are not yet automated as in CPython and pypy. To run these tests yourself, |test-py-link|
Coverage
Expand Down
7 changes: 6 additions & 1 deletion java/src/test/java/EulerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ void eulerTestProblem(Class<?> problemClass, boolean isSlow, Object expected) th
Object result = answerMethod.invoke(instance);
long elapsedTime = System.nanoTime() - startTime;
Assertions.assertEquals(expected, result);
if (!isSlow && System.getenv("IS_TARGET") != "false") {
if (!isSlow && !isSemeru()) {
Assertions.assertTrue(elapsedTime <= ONE_MINUTE_NS, "Test took too long");
}
}

public static boolean isSemeru() {
return System.getProperty("java.runtime.name", "").contains("Semeru")
|| System.getProperty("java.vm.vendor", "").contains("IBM");
}
}

0 comments on commit 23d6933

Please sign in to comment.