mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 08:37:56 +00:00
Refactor: Convert test definition to ES Module
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
module.exports = {
|
export default {
|
||||||
prompt: `
|
prompt: `
|
||||||
// Write an async JavaScript function 'calculateDeterminant' that calculates the determinant of a square matrix.
|
// Write an async JavaScript function 'calculateDeterminant' that calculates the determinant of a square matrix.
|
||||||
// - The function must accept an n x n matrix, represented as an array of arrays.
|
// - The function must accept an n x n matrix, represented as an array of arrays.
|
||||||
@@ -7,7 +7,7 @@ module.exports = {
|
|||||||
// - The function should return the determinant value.
|
// - The function should return the determinant value.
|
||||||
`,
|
`,
|
||||||
harness: `
|
harness: `
|
||||||
const assert = require('assert');
|
import assert from 'assert';
|
||||||
async function runTest() {
|
async function runTest() {
|
||||||
const matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
|
const matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user