mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
docs: salvage F# agent and language guidance
This commit is contained in:
parent
a8836d7bbd
commit
fd9453f6ee
22 changed files with 843 additions and 20 deletions
|
|
@ -234,6 +234,21 @@ function runTests() {
|
|||
}
|
||||
})) passed++; else failed++;
|
||||
|
||||
console.log('\nF# Detection:');
|
||||
|
||||
if (test('detects fsharp from project and source files', () => {
|
||||
const dir = createTempDir();
|
||||
try {
|
||||
writeTestFile(dir, 'App.fsproj', '<Project Sdk="Microsoft.NET.Sdk"></Project>');
|
||||
writeTestFile(dir, 'Program.fs', 'printfn "hello"\n');
|
||||
const result = detectProjectType(dir);
|
||||
assert.ok(result.languages.includes('fsharp'));
|
||||
assert.strictEqual(result.primary, 'fsharp');
|
||||
} finally {
|
||||
cleanupDir(dir);
|
||||
}
|
||||
})) passed++; else failed++;
|
||||
|
||||
// Go detection
|
||||
console.log('\nGo Detection:');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue