mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +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', () => {
|
describe('newGeneration', () => {
|
||||||
it('should produce the next generation according to the rules', () => {
|
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', () => {
|
describe('QuickSelect tests', () => {
|
||||||
it('should return the only element of a list of length 1', () => {
|
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('Vector2', () => {
|
||||||
describe('#equalsExactly', () => {
|
describe('#equalsExactly', () => {
|
@ -1,4 +1,4 @@
|
|||||||
import { breadthFirstSearch, depthFirstSearch } from './FloodFill'
|
import { breadthFirstSearch, depthFirstSearch } from '../FloodFill'
|
||||||
|
|
||||||
// some constants
|
// some constants
|
||||||
const black = [0, 0, 0]
|
const black = [0, 0, 0]
|
@ -1,4 +1,4 @@
|
|||||||
import { iterate, Vector2 } from './KochSnowflake'
|
import { iterate, Vector2 } from '../KochSnowflake'
|
||||||
|
|
||||||
describe('KochSnowflake', () => {
|
describe('KochSnowflake', () => {
|
||||||
it('should produce the correctly-transformed vectors', () => {
|
it('should produce the correctly-transformed vectors', () => {
|
Reference in New Issue
Block a user