Skip to content

Commit

Permalink
[ test ] More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed May 14, 2019
1 parent 2344b46 commit c8cccf2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions res/icons/ast/windows-svg-to-png.pl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use strict;
use warnings FATAL => 'all';
# Use this in git-bash

print `rm *.png`;

foreach my $svg (split /[ \t\n]+/, `ls *.svg`) {
my $png = $svg =~ s/svg/png/rg;
Expand Down
12 changes: 11 additions & 1 deletion test/create-ast.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.ice1000.tt

import com.intellij.testFramework.LightPlatformTestCase
import org.ice1000.tt.psi.agda.AgdaTokenType
import org.ice1000.tt.psi.mlpolyr.MLPolyRTokenType
import org.ice1000.tt.psi.redprl.RedPrlTokenType

class RedPrlCreateAstTest : LightPlatformTestCase() {
Expand All @@ -20,6 +21,15 @@ class RedPrlCreateAstTest : LightPlatformTestCase() {
class AgdaCreateAstTest : LightPlatformTestCase() {
fun testCreate() {
val project = getProject()
AgdaTokenType.createStr("\"Hey!\"", project)!!
AgdaTokenType.createStr("\"Come and get your love!\"", project)!!
}
}

class MLPolyRCreateAstTest : LightPlatformTestCase() {
fun testCreate() {
val project = getProject()
MLPolyRTokenType.createLabel("Van", project)!!
MLPolyRTokenType.createCon("`Van", project)!!
MLPolyRTokenType.createStr("\"What's the matter with your head\"", project)!!
}
}

0 comments on commit c8cccf2

Please sign in to comment.