<commit_before>import * as assert from "assert";
import * as path from "path";
import * as vs from "vscode";
import { Sdks, fsPath } from "../../src/utils";
import { ext, isWin } from "../helpers";

const sampleFilePath = (isWin ? "X:\\" : "/tmp/") + "sample.dart";
const sampleFileUri = vs.Uri.parse(`untitled:${sampleFilePath}`);

describe("test environment", () => {
	it("has opened the correct folder", () => {
		const wfs = vs.workspace.workspaceFolders;
		assert.equal(wfs.length, 1);
		assert.ok(
			fsPath(wfs[0].uri).endsWith(path.sep + "hello_world"),
			`${fsPath(wfs[0].uri)} doesn't end with ${path.sep}hello_world`,
		);
	});
});

describe("extension", () => {
	it("activated", async () => {
		await ext.activate();
		assert.equal(ext.isActive, true);
	});
	it("found the Dart SDK", async () => {
		await ext.activate();
		assert.ok(ext.exports);<commit_msg>Update test to use new isWin<commit_after>import * as assert from "assert";
import * as path from "path";
import * as vs from "vscode";
import { isWin } from "../../src/debug/utils";
import { Sdks, fsPath } from "../../src/utils";
import { ext } from "../helpers";

const sampleFilePath = (isWin ? "X:\\" : "/tmp/") + "sample.dart";
const sampleFileUri = vs.Uri.parse(`untitled:${sampleFilePath}`);

describe("test environment", () => {
	it("has opened the correct folder", () => {
		const wfs = vs.workspace.workspaceFolders;
		assert.equal(wfs.length, 1);
		assert.ok(
			fsPath(wfs[0].uri).endsWith(path.sep + "hello_world"),
			`${fsPath(wfs[0].uri)} doesn't end with ${path.sep}hello_world`,
		);
	});
});

describe("extension", () => {
	it("activated", async () => {
		await ext.activate();
		assert.equal(ext.isActive, true);
	});
	it("found the Dart SDK", async () => {
		await ext.activate();
		assert.ok(ext.exports);
{'fraction_non_alphanumeric': 0.2112284602556976, 'fraction_numerical': 0.0033351862145636463, 'mean_word_length': 4.187319884726225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6417070', 'n_tokens_mistral': 658, 'n_tokens_neox': 630, 'n_words': 145}