mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-13 16:17:54 +00:00
Refactor: Convert test definition to ES Module
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
export default {
|
||||
prompt: `
|
||||
// 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.
|
||||
@@ -7,7 +7,7 @@ module.exports = {
|
||||
// - The function should return the determinant value.
|
||||
`,
|
||||
harness: `
|
||||
const assert = require('assert');
|
||||
import assert from 'assert';
|
||||
async function runTest() {
|
||||
const matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user