mirror of
https://github.com/octoleo/plantuml.git
synced 2024-06-04 09:30:48 +00:00
19 lines
384 B
Java
19 lines
384 B
Java
package net.sourceforge.plantuml.math;
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
class Math04Test {
|
|
|
|
private final String math = "abs(x)";
|
|
private final String expected = "{\\left|{{x}}\\right|}";
|
|
|
|
@Test
|
|
public void testJava() {
|
|
final String res = new ASCIIMathTeXImg().getTeX(math);
|
|
assertEquals(expected, res);
|
|
}
|
|
|
|
}
|