Skip to content

Commit

Permalink
fix tests, functions are not methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrmanator committed Feb 16, 2024
1 parent d41e345 commit 5201b6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
4 changes: 2 additions & 2 deletions test/arguments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ describe('Test commander options', () => {
' -getNaturalColor(thing: Thing, pos: Vector, norm: Vector, rd: Vector, scene: Scene): any',
' +render(scene: any, ctx: any, screenWidth: any, screenHeight: any): void',
'}',
'+defaultScene(): Scene',
'+exec(): void',
// '+defaultScene(): Scene',
// '+exec(): void',
'Ray --> "1" Vector',
'Intersection --> "1" Thing',
'Intersection --> "1" Ray',
Expand Down
2 changes: 0 additions & 2 deletions test/mermaid/results/playground_raytracer
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ class RayTracer {
-getNaturalColor(thing: Thing, pos: Vector, norm: Vector, rd: Vector, scene: Scene): any
+render(scene: any, ctx: any, screenWidth: any, screenHeight: any): void
}
+defaultScene(): Scene
+exec(): void
Ray ..> "1" Vector
Intersection ..> "1" Thing
Intersection ..> "1" Ray
Expand Down
4 changes: 2 additions & 2 deletions test/playground.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ describe('Parse Playground codes', () => {
' -getNaturalColor(thing: Thing, pos: Vector, norm: Vector, rd: Vector, scene: Scene): any',
' +render(scene: any, ctx: any, screenWidth: any, screenHeight: any): void',
'}',
'+defaultScene(): Scene',
'+exec(): void',
// '+defaultScene(): Scene',
// '+exec(): void',
'@enduml'].join(os.EOL));
});
});

0 comments on commit 5201b6e

Please sign in to comment.