mirror of
https://bitbucket.org/Mattrixwv/typescriptclasses.git
synced 2025-12-07 02:43:58 -05:00
Added isPandigital function
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//typescriptClasses/TestAlgorithms.ts
|
||||
//Matthew Ellison
|
||||
// Created: 10-19-20
|
||||
//Modified: 07-13-21
|
||||
//Modified: 10-11-21
|
||||
//This class holds many algorithms that I have found it useful to keep around
|
||||
/*
|
||||
Copyright (C) 2021 Matthew Ellison
|
||||
@@ -23,7 +23,7 @@ Copyright (C) 2021 Matthew Ellison
|
||||
|
||||
import { testArrayEquals, testGetSum, testGetProd } from "./TestArrayAlgorithms";
|
||||
import { testFactorial, testGCD, testGetAllFib, testGetDivisors, testGetFactors, testGetFib, testGetNumPrimes, testGetPrimes, testIsPrime, testSieveOfEratosthenes, testSqrtBig, testToBin } from "./TestNumberAlgorithms";
|
||||
import { testFindNumOccurrences, testGetPermutations, testIsPalindrome } from "./TestStringAlgorithms";
|
||||
import { testFindNumOccurrences, testGetPermutations, testIsPalindrome, testIsPandigital } from "./TestStringAlgorithms";
|
||||
|
||||
|
||||
//Run the array tests
|
||||
@@ -49,5 +49,6 @@ testToBin();
|
||||
testGetPermutations();
|
||||
testIsPalindrome();
|
||||
testFindNumOccurrences();
|
||||
testIsPandigital();
|
||||
|
||||
console.log("All tests passed");
|
||||
|
||||
Reference in New Issue
Block a user