|
8 | 8 | */
|
9 | 9 |
|
10 | 10 | import assert from 'node:assert';
|
11 |
| -import { autoCompare, buildSortByKeys, getValueComplexity } from './compare-database.js'; |
| 11 | +import { autoCompare, buildSortByKeys } from './compare-database.js'; |
12 | 12 |
|
13 | 13 | // Test helper function
|
14 | 14 | const runTest = (testName, testFn) => {
|
@@ -201,18 +201,6 @@ runTest('autoCompare - buildSortByKeys integration for database data', () => {
|
201 | 201 | assert.strictEqual(comparison, 0); // Should be identical
|
202 | 202 | });
|
203 | 203 |
|
204 |
| -// Test cases for getValueComplexity function |
205 |
| -runTest('getValueComplexity - returns correct complexity scores', () => { |
206 |
| - assert.strictEqual(getValueComplexity(null), 0); |
207 |
| - assert.strictEqual(getValueComplexity(undefined), 0); |
208 |
| - assert.strictEqual(getValueComplexity(true), 1); |
209 |
| - assert.strictEqual(getValueComplexity(false), 1); |
210 |
| - assert.strictEqual(getValueComplexity(42), 2); |
211 |
| - assert.strictEqual(getValueComplexity('string'), 3); |
212 |
| - assert.strictEqual(getValueComplexity([1, 2, 3]), 4); |
213 |
| - assert.strictEqual(getValueComplexity({ key: 'value' }), 5); |
214 |
| -}); |
215 |
| - |
216 | 204 | // Test cases for buildSortByKeys with complexity sorting
|
217 | 205 | runTest('buildSortByKeys - prioritizes complex values', () => {
|
218 | 206 | const obj1 = {
|
|
0 commit comments