mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix nyaize test
This commit is contained in:
		
							parent
							
								
									02d36c4518
								
							
						
					
					
						commit
						2ecaa57cd5
					
				
					 1 changed files with 6 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -3,14 +3,13 @@
 | 
			
		|||
 * SPDX-License-Identifier: AGPL-3.0-only
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import { describe, test, assert, afterEach } from 'vitest';
 | 
			
		||||
import { nyaize } from '@/scripts/nyaize.js';
 | 
			
		||||
import { nyaize } from '../src/nyaize.js';
 | 
			
		||||
 | 
			
		||||
function runTests(cases) {
 | 
			
		||||
	for (const c of cases) {
 | 
			
		||||
		const [input,expected] = c;
 | 
			
		||||
		const got = nyaize(input);
 | 
			
		||||
        assert.strictEqual(got, expected);
 | 
			
		||||
		expect(got).toEqual(expected);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue