- HTML
- CSS
- Bootstrap
- JQuery
- JavaScript
User inputs a word or phrase and the program outputs an encoded message. If the normalized string's length happens to be a square number, the output will look like a square.
- Clone this repository to your desktop.
- Navigate to the top level of the directory.
- Open cryptosqure/index.html in your browser.
Describe | Test | Expect |
---|---|---|
encode() |
"It will recognizes only letters in a string and normalize the string (remove spaces & lowercase)" | (encode("Hi there!")).toEqual(hithere)) |
encode() |
"It will recognize the length of a string and output an encoded message with equal rows and columns if the length is a square number" | (encode("four")).toEqual("fuor") |
encode() |
"If the string's length is not a square number, it will add " " until the string's length is a square number and output an encoded message" | (encode("air")).toEqual("ari ") |
- User will need to refresh form