Skip to content

Commit

Permalink
tests: passed the new argument in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
racinmat authored and EwenQuim committed Dec 6, 2024
1 parent cf1eed6 commit e190636
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion parser/examples_graphs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ digraph {
r := strings.NewReplacer(" ", "", "\t", "", "\n", "")
for _, tc := range testCases {
t.Run(tc.pathToScript, func(t *testing.T) {
renpyLines := GetRenpyContent(tc.pathToScript)
renpyLines := GetRenpyContent(tc.pathToScript, tc.options)
graphResult, err := Graph(renpyLines, tc.options)
require.NoError(t, err)

Expand Down
2 changes: 1 addition & 1 deletion parser/filehandling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func TestGetRenpyContent(t *testing.T) {
result := GetRenpyContent("../testCases/simple")
result := GetRenpyContent("../testCases/simple", RenpyGraphOptions{})

expected := strings.Split(`label start:
"Is my VN simple ?"
Expand Down
4 changes: 2 additions & 2 deletions parser/perf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import (

func BenchmarkGetContent(b *testing.B) {
for i := 0; i < b.N; i++ {
GetRenpyContent("../testCases/complex")
GetRenpyContent("../testCases/complex", RenpyGraphOptions{})
}
}

var graph RenpyGraph

func BenchmarkGraph(b *testing.B) {
var g RenpyGraph
renpyLines := GetRenpyContent("../testCases/complex")
renpyLines := GetRenpyContent("../testCases/complex", RenpyGraphOptions{})
for i := 0; i < b.N; i++ {
g, _ = Graph(renpyLines, RenpyGraphOptions{})
}
Expand Down

0 comments on commit e190636

Please sign in to comment.