Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

# TODO: we can't test gpu, xyz, system, and video on the CI since there is bad Vulkan support
- name: Test
run: go test -v $(go list ./... | grep -v gpu | grep -v xyz | grep -v system | grep -v video) -coverprofile cover.out -timeout 30s
run: go test -short -v $(go list ./... | grep -v gpu | grep -v xyz | grep -v system | grep -v video) -coverprofile cover.out -timeout 30s

- name: Upload testdata
uses: actions/upload-artifact@v7
Expand Down
18 changes: 18 additions & 0 deletions text/tex/tex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func RunTest(t *testing.T, nm string, width int, height int, f func(pc *paint.Pa
}

func TestTex(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
tests := []struct {
name string
tex string
Expand Down Expand Up @@ -157,6 +160,9 @@ p_{m1} & p_{m2} & \ldots
}

func TestRelations(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
tests := []string{
`<`, `>`, `=`, `\leq`, `\le`, `\geq`, `\ge`, `\equiv`,
`\ll`, `\gg`, `\doteq`, `\prec`, `\succ`, `\sim`,
Expand Down Expand Up @@ -204,6 +210,9 @@ func TestRelations(t *testing.T) {
}

func TestOperators(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
tests := []string{
`+`, `-`, `\pm`, `\mp`, `\triangleleft`, `\cdot`, `\div`,
`\triangleright`, `\times`, `\setminus`, `\star`, `\cup`,
Expand Down Expand Up @@ -250,6 +259,9 @@ func TestOperators(t *testing.T) {
}

func TestBigOperators(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
tests := []string{
`\sum`, `\bigcup`, `\bigvee`, `\prod`, `\bigcap`, `\bigwedge`, `\coprod`,
`\bigsqcup`, `\biguplus`, `\int`, `\oint`, `\bigodot`,
Expand Down Expand Up @@ -292,6 +304,9 @@ func TestBigOperators(t *testing.T) {
}

func TestArrows(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
tests := []string{
`\leftarrow`, `\gets`, `\longleftarrow`, `\rightarrow`, `\to`, `\longrightarrow`,
`\leftrightarrow`, `\longleftrightarrow`, `\Leftarrow`, `\Longleftarrow`,
Expand Down Expand Up @@ -339,6 +354,9 @@ func TestArrows(t *testing.T) {
}

func TestSymbols(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
tests := []string{
`\dots`, `\cdots`, `\vdots`, `\ddots`, `\hbar`, `\imath`, `\jmath`, `\ell`,
`\Re`, `\Im`, `\aleph`, `\wp`, `\forall`, `\exists`,
Expand Down