Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Lum committed Mar 8, 2024
1 parent 58a6ec6 commit 6f3bb01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/math/ASCIIMathTeXImg.java
Expand Up @@ -905,8 +905,8 @@ private String[] AMTparseExpr(String str, boolean rightbracket) {
subarr = new ArrayList<String>(Arrays.asList(
newFrag.substring(pos.get(i) + 8, subpos.get(pos.get(i)).get(1))));
for (int j = 2; j < subpos.get(pos.get(i)).size(); j++) {
subarr.add(newFrag.substring(subpos.get(i).get(j - 1) + 1,
subpos.get(i).get(j)));
subarr.add(newFrag.substring(subpos.get(pos.get(i)).get(j - 1) + 1,
subpos.get(pos.get(i)).get(j)));
}
subarr.add(newFrag.substring(
subpos.get(pos.get(i)).get(subpos.get(pos.get(i)).size() - 1) + 1,
Expand Down
1 change: 1 addition & 0 deletions app/src/test/java/math/MathTest.java
Expand Up @@ -19,6 +19,7 @@ class MathTest {
" color(red)(t)=color(blue)(x), {\\textcolor{red}{{t}}}={\\textcolor{blue}{{x}}} ",
" f, {f} ",
" f_g, {{f}_{{g}}} ",
" '[[1,2,3],[4,5,6]]', {\\left[\\begin{matrix}{1}&{2}&{3}\\\\{4}&{5}&{6}\\end{matrix}\\right]} ",
})
public void testMath(String input, String expected) {
final String res = new ASCIIMathTeXImg().getTeX(input);
Expand Down
8 changes: 4 additions & 4 deletions docs/jacocoSummary.md
@@ -1,11 +1,11 @@
|Type | Missed/Total| Coverage|
|:--- | ---:| ---:|
|INSTRUCTION|~~817/6100~~ 758/6110|~~86.61~~ 87.59%|
|BRANCH | ~~143/345~~ 137/349|~~58.55~~ 60.74%|
|LINE | ~~103/408~~ 95/408|~~74.75~~ 76.72%|
|INSTRUCTION|~~758/6110~~ 696/6118|~~87.59~~ 88.62%|
|BRANCH | ~~137/349~~ 135/349|~~60.74~~ 61.32%|
|LINE | ~~95/408~~ 91/408|~~76.72~~ 77.70%|

Class list with less coverage (Worst 5)

|Class |Instructions(C0)| Branches(C1)|
|:--- | ---:| ---:|
|math.ASCIIMathTeXImg|758/6046(87.46%)|137/349(60.74%)|
|math.ASCIIMathTeXImg|696/6054(88.50%)|135/349(61.32%)|

0 comments on commit 6f3bb01

Please sign in to comment.