diff --git a/clients/tabby-agent/tests/golden.test.ts b/clients/tabby-agent/tests/golden.test.ts index a009a49ee4d7..6e7b63ffd32b 100644 --- a/clients/tabby-agent/tests/golden.test.ts +++ b/clients/tabby-agent/tests/golden.test.ts @@ -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 }, }; diff --git a/clients/tabby-agent/tests/golden/5-go.go b/clients/tabby-agent/tests/golden/5-go.go new file mode 100644 index 000000000000..f9abe15f5acb --- /dev/null +++ b/clients/tabby-agent/tests/golden/5-go.go @@ -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) +}⏮⏪ \ No newline at end of file diff --git a/clients/tabby-agent/tests/golden/6-rust.rs b/clients/tabby-agent/tests/golden/6-rust.rs new file mode 100644 index 000000000000..67fcf41a1997 --- /dev/null +++ b/clients/tabby-agent/tests/golden/6-rust.rs @@ -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); +}⏮⏪ \ No newline at end of file diff --git a/clients/tabby-agent/tests/golden/7-ruby.rb b/clients/tabby-agent/tests/golden/7-ruby.rb new file mode 100644 index 000000000000..f84f50ea70dc --- /dev/null +++ b/clients/tabby-agent/tests/golden/7-ruby.rb @@ -0,0 +1,4 @@ +def fibonacci(n) + return n if n <= 1 + ⏩⏭fibonacci(n - 1) + fibonacci(n - 2)⏮⏪ +end \ No newline at end of file