Skip to content

Commit

Permalink
test(agent): update golden test.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed Nov 5, 2023
1 parent df7f7f8 commit a69e49f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clients/tabby-agent/tests/golden.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ describe("agent golden test", () => {
debounce: { mode: "adaptive", interval: 250 },
timeout: { auto: 4000, manually: 4000 },
},
postprocess: { limitScopeByIndentation: { experimentalKeepBlockScopeWhenCompletingLine: false } },
postprocess: {
limitScope: {
experimentalSyntax: false,
indentation: { experimentalKeepBlockScopeWhenCompletingLine: false },
},
},
logs: { level: "debug" },
anonymousUsageTracking: { disable: true },
};
Expand Down
9 changes: 9 additions & 0 deletions clients/tabby-agent/tests/golden/5-go.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
func fibonacci(⏩⏭n int) int {
if n == 0 {
return 0
}
if n == 1 {
return 1
}
return fibonacci(n-1) + fibonacci(n-2)
}⏮⏪
9 changes: 9 additions & 0 deletions clients/tabby-agent/tests/golden/6-rust.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fn fibonacci(⏩⏭n: number): number {
if (n === 0) {
return 0;
}
if (n === 1) {
return 1;
}
return fibonacci(n - 1) + fibonacci(n - 2);
}⏮⏪
4 changes: 4 additions & 0 deletions clients/tabby-agent/tests/golden/7-ruby.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def fibonacci(n)
return n if n <= 1
⏩⏭fibonacci(n - 1) + fibonacci(n - 2)⏮⏪
end

0 comments on commit a69e49f

Please sign in to comment.