DevDiary



Install Packages

Install Packages



Reservation and User Class

Test 1: User is Admin



Test 2: Same User Cancels Reservation

Test 3: Different User Cancels Reservation



Test Explorer



Fibonacci Class

Recursive Function (Memoization)



Calculate Fibonacci Numbers

Test Explorer



Luhn Algorithm

Modulus 10

The Luhn algorithm or Luhn formula, also known as the "modulus 10" or "mod 10" algorithm, named after its creator, IBM scientist Hans Peter Luhn, is a simple checksum formula used to validate a variety of identification numbers, such as credit card numbers,

In this example I am testing four different credit card numbers. Two of them are real and two of them are fake.

This method implemets the algortihm, taking in a string and outputing a boolean.

All of the code can be seen HERE



Test File

Test Explorer