mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
merge: Made all tests follow file strcture convention already in-place (#820)
* add empty line to end of file * Move all test files to /test following convention
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { newGeneration } from './ConwaysGameOfLife'
|
||||
import { newGeneration } from '../ConwaysGameOfLife'
|
||||
|
||||
describe('newGeneration', () => {
|
||||
it('should produce the next generation according to the rules', () => {
|
@ -1,4 +1,4 @@
|
||||
import { QuickSelect } from './QuickSelect'
|
||||
import { QuickSelect } from '../QuickSelect'
|
||||
|
||||
describe('QuickSelect tests', () => {
|
||||
it('should return the only element of a list of length 1', () => {
|
@ -1,4 +1,4 @@
|
||||
import { Vector2 } from './Vector2.js'
|
||||
import { Vector2 } from '../Vector2.js'
|
||||
|
||||
describe('Vector2', () => {
|
||||
describe('#equalsExactly', () => {
|
@ -1,4 +1,4 @@
|
||||
import { breadthFirstSearch, depthFirstSearch } from './FloodFill'
|
||||
import { breadthFirstSearch, depthFirstSearch } from '../FloodFill'
|
||||
|
||||
// some constants
|
||||
const black = [0, 0, 0]
|
@ -1,4 +1,4 @@
|
||||
import { iterate, Vector2 } from './KochSnowflake'
|
||||
import { iterate, Vector2 } from '../KochSnowflake'
|
||||
|
||||
describe('KochSnowflake', () => {
|
||||
it('should produce the correctly-transformed vectors', () => {
|
Reference in New Issue
Block a user