trackler 2.1.0.48 → 2.1.0.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +88 -82
- data/CONTRIBUTING.md +5 -5
- data/fixtures/{common → problem-specifications}/exercises/apple/canonical-data.json +0 -0
- data/fixtures/{common → problem-specifications}/exercises/apple/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/apple/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/banana/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/banana/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/cherry/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/cherry/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/dog/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/dog/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/fish/.deprecated +0 -0
- data/fixtures/{common → problem-specifications}/exercises/fish/canonical-data.json +0 -0
- data/fixtures/{common → problem-specifications}/exercises/fish/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/fish/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/hello-world/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/hello-world/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/imbe/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/imbe/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/mango/canonical-data.json +0 -0
- data/fixtures/{common → problem-specifications}/exercises/mango/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/mango/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/no-metadata/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/one/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/one/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/three/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/three/metadata.yml +0 -0
- data/fixtures/{common → problem-specifications}/exercises/two/description.md +0 -0
- data/fixtures/{common → problem-specifications}/exercises/two/metadata.yml +0 -0
- data/fixtures/tracks/animal/exercises/fish/included-via-symlink.txt +1 -0
- data/lib/trackler/guaranteed_file.rb +3 -3
- data/lib/trackler/specification.rb +4 -4
- data/lib/trackler/specifications.rb +1 -1
- data/lib/trackler/version.rb +1 -1
- data/{common → problem-specifications}/.gitignore +0 -0
- data/{common → problem-specifications}/.travis.yml +0 -0
- data/{common → problem-specifications}/CONTRIBUTING.md +11 -51
- data/{common → problem-specifications}/LICENSE +0 -0
- data/{common → problem-specifications}/README.md +2 -9
- data/{common → problem-specifications}/TOPICS.txt +0 -0
- data/{common → problem-specifications}/bin/check_required_files_present +0 -0
- data/{common → problem-specifications}/bin/transfer_blurb_to_description.rb +2 -2
- data/{common → problem-specifications}/canonical-schema.json +0 -0
- data/{common → problem-specifications}/exercises/accumulate/description.md +0 -0
- data/{common → problem-specifications}/exercises/accumulate/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/acronym/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/acronym/description.md +0 -0
- data/{common → problem-specifications}/exercises/acronym/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/all-your-base/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/all-your-base/description.md +0 -0
- data/{common → problem-specifications}/exercises/all-your-base/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/allergies/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/allergies/description.md +0 -0
- data/{common → problem-specifications}/exercises/allergies/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/alphametics/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/alphametics/description.md +0 -0
- data/{common → problem-specifications}/exercises/alphametics/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/anagram/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/anagram/description.md +0 -0
- data/{common → problem-specifications}/exercises/anagram/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/atbash-cipher/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/atbash-cipher/description.md +0 -0
- data/{common → problem-specifications}/exercises/atbash-cipher/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/bank-account/description.md +0 -0
- data/{common → problem-specifications}/exercises/bank-account/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/beer-song/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/beer-song/description.md +0 -0
- data/{common → problem-specifications}/exercises/beer-song/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/binary-search-tree/description.md +0 -0
- data/{common → problem-specifications}/exercises/binary-search-tree/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/binary-search/canonical-data.json +2 -2
- data/{common → problem-specifications}/exercises/binary-search/description.md +0 -0
- data/{common → problem-specifications}/exercises/binary-search/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/binary/.deprecated +1 -1
- data/{common → problem-specifications}/exercises/binary/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/binary/description.md +0 -0
- data/{common → problem-specifications}/exercises/binary/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/bob/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/bob/description.md +0 -0
- data/{common → problem-specifications}/exercises/bob/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/book-store/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/book-store/description.md +0 -0
- data/{common → problem-specifications}/exercises/book-store/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/bowling/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/bowling/description.md +0 -0
- data/{common → problem-specifications}/exercises/bowling/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/bracket-push/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/bracket-push/description.md +0 -0
- data/{common → problem-specifications}/exercises/bracket-push/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/change/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/change/description.md +0 -0
- data/{common → problem-specifications}/exercises/change/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/circular-buffer/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/circular-buffer/description.md +0 -0
- data/{common → problem-specifications}/exercises/circular-buffer/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/clock/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/clock/description.md +0 -0
- data/{common → problem-specifications}/exercises/clock/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/collatz-conjecture/canonical-data.json +2 -2
- data/{common → problem-specifications}/exercises/collatz-conjecture/description.md +0 -0
- data/{common → problem-specifications}/exercises/collatz-conjecture/metadata.yml +0 -0
- data/problem-specifications/exercises/complex-numbers/canonical-data.json +270 -0
- data/problem-specifications/exercises/complex-numbers/description.md +3 -0
- data/problem-specifications/exercises/complex-numbers/metadata.yml +4 -0
- data/{common → problem-specifications}/exercises/connect/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/connect/description.md +0 -0
- data/{common → problem-specifications}/exercises/connect/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/counter/.deprecated +1 -1
- data/{common → problem-specifications}/exercises/counter/description.md +1 -1
- data/{common → problem-specifications}/exercises/counter/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/crypto-square/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/crypto-square/description.md +0 -0
- data/{common → problem-specifications}/exercises/crypto-square/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/custom-set/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/custom-set/description.md +0 -0
- data/{common → problem-specifications}/exercises/custom-set/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/diamond/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/diamond/description.md +0 -0
- data/{common → problem-specifications}/exercises/diamond/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/difference-of-squares/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/difference-of-squares/description.md +0 -0
- data/{common → problem-specifications}/exercises/difference-of-squares/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/diffie-hellman/description.md +0 -0
- data/{common → problem-specifications}/exercises/diffie-hellman/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/dominoes/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/dominoes/description.md +0 -0
- data/{common → problem-specifications}/exercises/dominoes/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/dot-dsl/description.md +0 -0
- data/{common → problem-specifications}/exercises/dot-dsl/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/error-handling/description.md +0 -0
- data/{common → problem-specifications}/exercises/error-handling/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/etl/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/etl/description.md +0 -0
- data/{common → problem-specifications}/exercises/etl/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/flatten-array/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/flatten-array/description.md +0 -0
- data/{common → problem-specifications}/exercises/flatten-array/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/food-chain/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/food-chain/description.md +0 -0
- data/{common → problem-specifications}/exercises/food-chain/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/forth/canonical-data.json +10 -1
- data/{common → problem-specifications}/exercises/forth/description.md +0 -0
- data/{common → problem-specifications}/exercises/forth/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/gigasecond/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/gigasecond/description.md +0 -0
- data/{common → problem-specifications}/exercises/gigasecond/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/go-counting/description.md +0 -0
- data/{common → problem-specifications}/exercises/go-counting/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/grade-school/description.md +0 -0
- data/{common → problem-specifications}/exercises/grade-school/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/grains/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/grains/description.md +0 -0
- data/{common → problem-specifications}/exercises/grains/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/grep/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/grep/description.md +0 -0
- data/{common → problem-specifications}/exercises/grep/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/hamming/canonical-data.json +8 -8
- data/{common → problem-specifications}/exercises/hamming/description.md +0 -0
- data/{common → problem-specifications}/exercises/hamming/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/hangman/description.md +0 -0
- data/{common → problem-specifications}/exercises/hangman/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/hello-world/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/hello-world/description.md +0 -0
- data/{common → problem-specifications}/exercises/hello-world/metadata.yml +0 -0
- data/{common/exercises/octal → problem-specifications/exercises/hexadecimal}/.deprecated +1 -1
- data/{common → problem-specifications}/exercises/hexadecimal/description.md +0 -0
- data/{common → problem-specifications}/exercises/hexadecimal/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/house/description.md +0 -0
- data/{common → problem-specifications}/exercises/house/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/isogram/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/isogram/description.md +0 -0
- data/{common → problem-specifications}/exercises/isogram/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/kindergarten-garden/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/kindergarten-garden/description.md +0 -0
- data/{common → problem-specifications}/exercises/kindergarten-garden/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/largest-series-product/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/largest-series-product/description.md +0 -0
- data/{common → problem-specifications}/exercises/largest-series-product/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/leap/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/leap/description.md +0 -0
- data/{common → problem-specifications}/exercises/leap/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/ledger/description.md +0 -0
- data/{common → problem-specifications}/exercises/ledger/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/lens-person/description.md +0 -0
- data/{common → problem-specifications}/exercises/lens-person/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/linked-list/description.md +0 -0
- data/{common → problem-specifications}/exercises/linked-list/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/list-ops/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/list-ops/description.md +0 -0
- data/{common → problem-specifications}/exercises/list-ops/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/luhn/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/luhn/description.md +0 -0
- data/{common → problem-specifications}/exercises/luhn/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/markdown/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/markdown/description.md +0 -0
- data/{common → problem-specifications}/exercises/markdown/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/matrix/description.md +0 -0
- data/{common → problem-specifications}/exercises/matrix/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/meetup/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/meetup/description.md +0 -0
- data/{common → problem-specifications}/exercises/meetup/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/minesweeper/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/minesweeper/description.md +0 -0
- data/{common → problem-specifications}/exercises/minesweeper/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/nth-prime/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/nth-prime/description.md +0 -0
- data/{common → problem-specifications}/exercises/nth-prime/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/nucleotide-codons/.deprecated +1 -1
- data/{common → problem-specifications}/exercises/nucleotide-codons/description.md +0 -0
- data/{common → problem-specifications}/exercises/nucleotide-codons/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/nucleotide-count/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/nucleotide-count/description.md +0 -0
- data/{common → problem-specifications}/exercises/nucleotide-count/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/ocr-numbers/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/ocr-numbers/description.md +0 -0
- data/{common → problem-specifications}/exercises/ocr-numbers/metadata.yml +0 -0
- data/{common/exercises/hexadecimal → problem-specifications/exercises/octal}/.deprecated +1 -1
- data/{common → problem-specifications}/exercises/octal/description.md +0 -0
- data/{common → problem-specifications}/exercises/octal/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/paasio/description.md +0 -0
- data/{common → problem-specifications}/exercises/paasio/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/palindrome-products/description.md +0 -0
- data/{common → problem-specifications}/exercises/palindrome-products/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/pangram/canonical-data.json +2 -2
- data/{common → problem-specifications}/exercises/pangram/description.md +2 -2
- data/{common → problem-specifications}/exercises/pangram/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/parallel-letter-frequency/description.md +0 -0
- data/{common → problem-specifications}/exercises/parallel-letter-frequency/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/pascals-triangle/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/pascals-triangle/description.md +0 -0
- data/{common → problem-specifications}/exercises/pascals-triangle/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/perfect-numbers/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/perfect-numbers/description.md +0 -0
- data/{common → problem-specifications}/exercises/perfect-numbers/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/phone-number/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/phone-number/description.md +12 -10
- data/{common → problem-specifications}/exercises/phone-number/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/pig-latin/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/pig-latin/description.md +0 -0
- data/{common → problem-specifications}/exercises/pig-latin/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/point-mutations/.deprecated +1 -1
- data/{common → problem-specifications}/exercises/point-mutations/description.md +0 -0
- data/{common → problem-specifications}/exercises/point-mutations/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/poker/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/poker/description.md +0 -0
- data/{common → problem-specifications}/exercises/poker/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/pov/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/pov/description.md +0 -0
- data/{common → problem-specifications}/exercises/pov/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/prime-factors/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/prime-factors/description.md +0 -0
- data/{common → problem-specifications}/exercises/prime-factors/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/protein-translation/description.md +0 -0
- data/{common → problem-specifications}/exercises/protein-translation/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/proverb/description.md +0 -0
- data/{common → problem-specifications}/exercises/proverb/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/pythagorean-triplet/description.md +0 -0
- data/{common → problem-specifications}/exercises/pythagorean-triplet/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/queen-attack/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/queen-attack/description.md +0 -0
- data/{common → problem-specifications}/exercises/queen-attack/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/rail-fence-cipher/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/rail-fence-cipher/description.md +0 -0
- data/{common → problem-specifications}/exercises/rail-fence-cipher/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/raindrops/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/raindrops/description.md +0 -0
- data/{common → problem-specifications}/exercises/raindrops/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/react/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/react/description.md +0 -0
- data/{common → problem-specifications}/exercises/react/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/rectangles/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/rectangles/description.md +0 -0
- data/{common → problem-specifications}/exercises/rectangles/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/rna-transcription/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/rna-transcription/description.md +0 -0
- data/{common → problem-specifications}/exercises/rna-transcription/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/robot-name/description.md +0 -0
- data/{common → problem-specifications}/exercises/robot-name/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/robot-simulator/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/robot-simulator/description.md +0 -0
- data/{common → problem-specifications}/exercises/robot-simulator/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/roman-numerals/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/roman-numerals/description.md +0 -0
- data/{common → problem-specifications}/exercises/roman-numerals/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/rotational-cipher/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/rotational-cipher/description.md +0 -0
- data/{common → problem-specifications}/exercises/rotational-cipher/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/run-length-encoding/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/run-length-encoding/description.md +0 -0
- data/{common → problem-specifications}/exercises/run-length-encoding/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/saddle-points/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/saddle-points/description.md +0 -0
- data/{common → problem-specifications}/exercises/saddle-points/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/say/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/say/description.md +0 -0
- data/{common → problem-specifications}/exercises/say/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/scale-generator/description.md +0 -0
- data/{common → problem-specifications}/exercises/scale-generator/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/scrabble-score/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/scrabble-score/description.md +0 -0
- data/{common → problem-specifications}/exercises/scrabble-score/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/secret-handshake/canonical-data.json +2 -2
- data/{common → problem-specifications}/exercises/secret-handshake/description.md +0 -0
- data/{common → problem-specifications}/exercises/secret-handshake/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/series/description.md +0 -0
- data/{common → problem-specifications}/exercises/series/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/sgf-parsing/description.md +0 -0
- data/{common → problem-specifications}/exercises/sgf-parsing/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/sieve/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/sieve/description.md +0 -0
- data/{common → problem-specifications}/exercises/sieve/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/simple-cipher/description.md +0 -0
- data/{common → problem-specifications}/exercises/simple-cipher/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/simple-linked-list/description.md +0 -0
- data/{common → problem-specifications}/exercises/simple-linked-list/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/space-age/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/space-age/description.md +0 -0
- data/{common → problem-specifications}/exercises/space-age/metadata.yml +0 -0
- data/problem-specifications/exercises/spiral-matrix/canonical-data.json +52 -0
- data/problem-specifications/exercises/spiral-matrix/description.md +22 -0
- data/problem-specifications/exercises/spiral-matrix/metadata.yml +4 -0
- data/{common → problem-specifications}/exercises/strain/description.md +0 -0
- data/{common → problem-specifications}/exercises/strain/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/sublist/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/sublist/description.md +0 -0
- data/{common → problem-specifications}/exercises/sublist/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/sum-of-multiples/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/sum-of-multiples/description.md +0 -0
- data/{common → problem-specifications}/exercises/sum-of-multiples/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/tournament/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/tournament/description.md +0 -0
- data/{common → problem-specifications}/exercises/tournament/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/transpose/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/transpose/description.md +0 -0
- data/{common → problem-specifications}/exercises/transpose/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/tree-building/description.md +0 -0
- data/{common → problem-specifications}/exercises/tree-building/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/triangle/canonical-data.json +1 -1
- data/{common → problem-specifications}/exercises/triangle/description.md +0 -0
- data/{common → problem-specifications}/exercises/triangle/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/trinary/.deprecated +1 -1
- data/{common → problem-specifications}/exercises/trinary/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/trinary/description.md +0 -0
- data/{common → problem-specifications}/exercises/trinary/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/twelve-days/description.md +0 -0
- data/{common → problem-specifications}/exercises/twelve-days/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/two-bucket/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/two-bucket/description.md +0 -0
- data/{common → problem-specifications}/exercises/two-bucket/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/two-fer/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/two-fer/description.md +0 -0
- data/{common → problem-specifications}/exercises/two-fer/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/variable-length-quantity/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/variable-length-quantity/description.md +0 -0
- data/{common → problem-specifications}/exercises/variable-length-quantity/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/word-count/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/word-count/description.md +0 -0
- data/{common → problem-specifications}/exercises/word-count/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/word-search/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/word-search/description.md +0 -0
- data/{common → problem-specifications}/exercises/word-search/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/wordy/canonical-data.json +0 -0
- data/{common → problem-specifications}/exercises/wordy/description.md +0 -0
- data/{common → problem-specifications}/exercises/wordy/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/zebra-puzzle/description.md +0 -0
- data/{common → problem-specifications}/exercises/zebra-puzzle/metadata.yml +0 -0
- data/{common → problem-specifications}/exercises/zipper/description.md +0 -0
- data/{common → problem-specifications}/exercises/zipper/metadata.yml +0 -0
- data/{common → problem-specifications}/package.json +2 -2
- data/{common → problem-specifications}/yarn.lock +0 -0
- data/trackler.gemspec +1 -1
- data/tracks/bash/config.json +7 -0
- data/tracks/bash/exercises/pangram/example.sh +7 -0
- data/tracks/bash/exercises/pangram/pangram_tests.sh +47 -0
- data/tracks/c/config.json +19 -0
- data/tracks/c/exercises/acronym/makefile +15 -0
- data/tracks/c/exercises/acronym/src/example.c +44 -0
- data/tracks/c/exercises/acronym/src/example.h +6 -0
- data/tracks/c/exercises/acronym/test/test_acronym.c +68 -0
- data/tracks/c/exercises/acronym/test/vendor/unity.c +1300 -0
- data/tracks/c/exercises/acronym/test/vendor/unity.h +274 -0
- data/tracks/c/exercises/acronym/test/vendor/unity_internals.h +701 -0
- data/tracks/c/exercises/isogram/makefile +15 -0
- data/tracks/c/exercises/isogram/src/example.c +26 -0
- data/tracks/c/exercises/isogram/src/example.h +8 -0
- data/tracks/c/exercises/isogram/test/test_isogram.c +66 -0
- data/tracks/c/exercises/isogram/test/vendor/unity.c +1300 -0
- data/tracks/c/exercises/isogram/test/vendor/unity.h +274 -0
- data/tracks/c/exercises/isogram/test/vendor/unity_internals.h +701 -0
- data/tracks/{dartlang → chapel}/.gitignore +0 -0
- data/tracks/{dartlang → chapel}/.travis.yml +0 -0
- data/tracks/{dartlang → chapel}/LICENSE +0 -0
- data/tracks/chapel/README.md +11 -0
- data/tracks/{dartlang → chapel}/bin/fetch-configlet +0 -0
- data/tracks/{dartlang → chapel}/config.json +3 -3
- data/tracks/{dartlang → chapel}/docs/ABOUT.md +0 -0
- data/tracks/{dartlang → chapel}/docs/EXERCISE_README_INSERT.md +0 -0
- data/tracks/{dartlang → chapel}/docs/INSTALLATION.md +0 -0
- data/tracks/{dartlang → chapel}/docs/LEARNING.md +0 -0
- data/tracks/{dartlang → chapel}/docs/RESOURCES.md +0 -0
- data/tracks/{dartlang → chapel}/docs/TESTS.md +0 -0
- data/tracks/{dartlang/img → chapel/exercises}/.keep +0 -0
- data/tracks/chapel/img/.keep +0 -0
- data/tracks/clojurescript/README.md +1 -1
- data/tracks/clojurescript/config.json +1 -1
- data/tracks/coffeescript/config.json +1 -1
- data/tracks/coldfusion/config.json +1 -1
- data/tracks/coq/README.md +1 -1
- data/tracks/coq/config.json +1 -1
- data/tracks/coq/docs/EXERCISE_README_INSERT.md +1 -1
- data/tracks/cpp/CMakeLists.txt +1 -0
- data/tracks/cpp/config.json +8 -0
- data/tracks/cpp/exercises/allergies/CMakeLists.txt +52 -0
- data/tracks/cpp/exercises/allergies/allergies_test.cpp +148 -0
- data/tracks/cpp/exercises/allergies/example.cpp +30 -0
- data/tracks/cpp/exercises/allergies/example.h +36 -0
- data/tracks/csharp/build.ps1 +2 -2
- data/tracks/csharp/build.sh +2 -2
- data/tracks/csharp/exercises/all-your-base/AllYourBase.cs +1 -1
- data/tracks/csharp/exercises/all-your-base/AllYourBaseTest.cs +103 -102
- data/tracks/csharp/exercises/all-your-base/Example.cs +1 -1
- data/tracks/csharp/exercises/beer-song/BeerSongTest.cs +322 -322
- data/tracks/csharp/exercises/bob/BobTest.cs +2 -0
- data/tracks/csharp/exercises/book-store/BookStore.cs +1 -1
- data/tracks/csharp/exercises/book-store/BookStoreTest.cs +42 -28
- data/tracks/csharp/exercises/book-store/Example.cs +5 -5
- data/tracks/csharp/exercises/food-chain/FoodChainTest.cs +96 -96
- data/tracks/csharp/exercises/nth-prime/NthPrimeTest.cs +1 -2
- data/tracks/csharp/exercises/perfect-numbers/PerfectNumbersTest.cs +2 -3
- data/tracks/csharp/exercises/transpose/Example.cs +14 -14
- data/tracks/csharp/exercises/transpose/TransposeTest.cs +34 -44
- data/tracks/csharp/exercises/wordy/WordyTest.cs +2 -3
- data/tracks/csharp/generators/Exercise.cs +23 -0
- data/tracks/csharp/generators/ExerciseCollection.cs +33 -0
- data/tracks/csharp/generators/Exercises/Acronym.cs +6 -0
- data/tracks/csharp/generators/Exercises/AllYourBase.cs +22 -0
- data/tracks/csharp/generators/Exercises/AtbashCipher.cs +6 -0
- data/tracks/csharp/generators/Exercises/BeerSong.cs +11 -0
- data/tracks/csharp/generators/Exercises/Bob.cs +2 -16
- data/tracks/csharp/generators/Exercises/BookStore.cs +16 -0
- data/tracks/csharp/generators/Exercises/FoodChain.cs +16 -0
- data/tracks/csharp/generators/Exercises/HelloWorld.cs +6 -0
- data/tracks/csharp/generators/Exercises/Isogram.cs +6 -0
- data/tracks/csharp/generators/Exercises/Leap.cs +11 -0
- data/tracks/csharp/generators/Exercises/Luhn.cs +11 -0
- data/tracks/csharp/generators/Exercises/NthPrime.cs +13 -0
- data/tracks/csharp/generators/Exercises/PerfectNumbers.cs +21 -0
- data/tracks/csharp/generators/Exercises/PigLatin.cs +6 -0
- data/tracks/csharp/generators/Exercises/Raindrops.cs +6 -0
- data/tracks/csharp/generators/Exercises/RomanNumerals.cs +15 -0
- data/tracks/csharp/generators/Exercises/RotationalCipher.cs +6 -0
- data/tracks/csharp/generators/Exercises/Transpose.cs +19 -0
- data/tracks/csharp/generators/Exercises/Wordy.cs +13 -0
- data/tracks/csharp/generators/Generators.csproj +8 -2
- data/tracks/csharp/generators/{Data → Input}/CanonicalData.cs +1 -3
- data/tracks/csharp/generators/Input/CanonicalDataCase.cs +37 -0
- data/tracks/csharp/generators/Input/CanonicalDataCaseJsonConverter.cs +43 -0
- data/tracks/csharp/generators/{Data → Input}/CanonicalDataCasesJsonConverter.cs +6 -11
- data/tracks/csharp/generators/{Data → Input}/CanonicalDataParser.cs +1 -1
- data/tracks/csharp/generators/Output/BooleanTestMethodGenerator.cs +13 -0
- data/tracks/csharp/generators/Output/EqualityTestMethodGenerator.cs +10 -0
- data/tracks/csharp/generators/Output/ExceptionTestMethodGenerator.cs +12 -0
- data/tracks/csharp/generators/Output/NameExtensions.cs +35 -0
- data/tracks/csharp/generators/Output/TestClass.cs +12 -0
- data/tracks/csharp/generators/Output/TestClass.liquid +20 -0
- data/tracks/csharp/generators/Output/TestClassFile.cs +22 -0
- data/tracks/csharp/generators/Output/TestClassGenerator.cs +30 -0
- data/tracks/csharp/generators/Output/TestClassRenderer.cs +26 -0
- data/tracks/csharp/generators/Output/TestMethod.cs +10 -0
- data/tracks/csharp/generators/Output/TestMethodGenerator.cs +95 -0
- data/tracks/csharp/generators/Output/UnescapedValue.cs +11 -0
- data/tracks/csharp/generators/Output/ValueFormatter.cs +100 -0
- data/tracks/csharp/generators/Program.cs +10 -42
- data/tracks/csharp/generators/Properties/launchSettings.json +7 -0
- data/tracks/csharp/generators/{Methods/TestedMethodType.cs → TestedMethodType.cs} +1 -1
- data/tracks/{dlang → d}/.gitignore +0 -0
- data/tracks/{dlang → d}/.travis.yml +0 -0
- data/tracks/{dlang → d}/LICENSE +0 -0
- data/tracks/{dlang → d}/README.md +1 -1
- data/tracks/{dlang → d}/bin/fetch-configlet +0 -0
- data/tracks/{dlang → d}/bin/test-all-exercises +0 -0
- data/tracks/{dlang → d}/bin/test-exercise +0 -0
- data/tracks/{dlang → d}/config.json +2 -2
- data/tracks/{dlang → d}/docs/ABOUT.md +0 -0
- data/tracks/{dlang → d}/docs/EXERCISE_README_INSERT.md +0 -0
- data/tracks/{dlang → d}/docs/INSTALLATION.md +0 -0
- data/tracks/{dlang → d}/docs/LEARNING.md +0 -0
- data/tracks/{dlang → d}/docs/RESOURCES.md +0 -0
- data/tracks/{dlang → d}/docs/TESTS.md +0 -0
- data/tracks/{dlang → d}/exercises/bob/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/bob/example/bob.d +0 -0
- data/tracks/{dlang → d}/exercises/bob/source/bob.d +0 -0
- data/tracks/{dlang → d}/exercises/circular-buffer/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/circular-buffer/example/circular_buffer.d +1 -1
- data/tracks/{dlang → d}/exercises/circular-buffer/source/circular_buffer.d +2 -2
- data/tracks/{dlang → d}/exercises/crypto-square/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/crypto-square/example/crypto_square.d +0 -0
- data/tracks/{dlang → d}/exercises/crypto-square/source/crypto_square.d +0 -0
- data/tracks/{dlang → d}/exercises/difference-of-squares/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/difference-of-squares/example/difference_of_squares.d +0 -0
- data/tracks/{dlang → d}/exercises/difference-of-squares/source/difference_of_squares.d +0 -0
- data/tracks/{dlang → d}/exercises/etl/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/etl/example/etl.d +2 -1
- data/tracks/{dlang → d}/exercises/etl/source/etl.d +0 -0
- data/tracks/{dlang → d}/exercises/gigasecond/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/gigasecond/example/gigasecond.d +0 -0
- data/tracks/{dlang → d}/exercises/gigasecond/source/gigasecond.d +0 -0
- data/tracks/{dlang → d}/exercises/hamming/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/hamming/example/hamming.d +2 -1
- data/tracks/{dlang → d}/exercises/hamming/source/hamming.d +2 -0
- data/tracks/{dlang → d}/exercises/hello-world/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/hello-world/example/hello_world.d +0 -0
- data/tracks/{dlang → d}/exercises/hello-world/source/hello_world.d +0 -0
- data/tracks/{dlang → d}/exercises/leap/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/leap/example/leap.d +0 -0
- data/tracks/{dlang → d}/exercises/leap/source/leap.d +0 -0
- data/tracks/{dlang → d}/exercises/nucleotide-count/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/nucleotide-count/example/nucleotide_count.d +2 -1
- data/tracks/{dlang → d}/exercises/nucleotide-count/source/nucleotide_count.d +2 -0
- data/tracks/{dlang → d}/exercises/pangram/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/pangram/example/pangram.d +0 -0
- data/tracks/{dlang → d}/exercises/pangram/source/pangram.d +0 -0
- data/tracks/{dlang → d}/exercises/raindrops/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/raindrops/example/raindrops.d +0 -0
- data/tracks/{dlang → d}/exercises/raindrops/source/raindrops.d +0 -0
- data/tracks/{dlang → d}/exercises/react/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/react/example/react.d +0 -0
- data/tracks/{dlang → d}/exercises/react/source/react.d +0 -0
- data/tracks/{dlang → d}/exercises/rna-transcription/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/rna-transcription/example/rna_transcription.d +4 -1
- data/tracks/{dlang → d}/exercises/rna-transcription/source/rna_transcription.d +1 -1
- data/tracks/{dlang → d}/exercises/robot-name/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/robot-name/example/robot_name.d +0 -0
- data/tracks/{dlang → d}/exercises/robot-name/source/robot_name.d +0 -0
- data/tracks/{dlang → d}/exercises/roman-numerals/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/roman-numerals/example/roman_numerals.d +0 -0
- data/tracks/{dlang → d}/exercises/roman-numerals/source/roman_numerals.d +0 -0
- data/tracks/{dlang → d}/exercises/series/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/series/example/series.d +1 -1
- data/tracks/{dlang → d}/exercises/series/source/series.d +1 -1
- data/tracks/{dlang → d}/exercises/triangle/dub.sdl +0 -0
- data/tracks/{dlang → d}/exercises/triangle/example/triangle.d +1 -2
- data/tracks/{dlang → d}/exercises/triangle/source/triangle.d +1 -3
- data/tracks/{dlang → d}/img/icon.png +0 -0
- data/tracks/{dartlang → dart}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- data/tracks/dart/.gitignore +24 -0
- data/tracks/dart/.travis.yml +27 -0
- data/tracks/dart/LICENSE +21 -0
- data/tracks/{dartlang → dart}/README.md +1 -1
- data/tracks/dart/analysis_options.yaml +7 -0
- data/tracks/dart/bin/fetch-configlet +32 -0
- data/tracks/dart/config.json +79 -0
- data/tracks/dart/docs/ABOUT.md +0 -0
- data/tracks/dart/docs/EXERCISE_README_INSERT.md +0 -0
- data/tracks/dart/docs/INSTALLATION.md +0 -0
- data/tracks/dart/docs/LEARNING.md +0 -0
- data/tracks/dart/docs/RESOURCES.md +0 -0
- data/tracks/dart/docs/TESTS.md +0 -0
- data/tracks/dart/exercises/bob/lib/bob.dart +3 -0
- data/tracks/dart/exercises/bob/lib/example.dart +17 -0
- data/tracks/dart/exercises/bob/pubspec.lock +281 -0
- data/tracks/dart/exercises/bob/pubspec.yaml +3 -0
- data/tracks/dart/exercises/bob/test/bob_test.dart +118 -0
- data/tracks/dart/exercises/difference-of-squares/lib/difference_of_squares.dart +3 -0
- data/tracks/dart/exercises/difference-of-squares/lib/example.dart +13 -0
- data/tracks/dart/exercises/difference-of-squares/pubspec.lock +281 -0
- data/tracks/dart/exercises/difference-of-squares/pubspec.yaml +3 -0
- data/tracks/dart/exercises/difference-of-squares/test/difference_of_squares_test.dart +50 -0
- data/tracks/dart/exercises/gigasecond/lib/example.dart +7 -0
- data/tracks/dart/exercises/gigasecond/lib/gigasecond.dart +3 -0
- data/tracks/dart/exercises/gigasecond/pubspec.lock +281 -0
- data/tracks/dart/exercises/gigasecond/pubspec.yaml +3 -0
- data/tracks/dart/exercises/gigasecond/test/gigasecond_test.dart +39 -0
- data/tracks/dart/exercises/hamming/lib/example.dart +17 -0
- data/tracks/dart/exercises/hamming/lib/hamming.dart +3 -0
- data/tracks/dart/exercises/hamming/pubspec.lock +281 -0
- data/tracks/dart/exercises/hamming/pubspec.yaml +3 -0
- data/tracks/dart/exercises/hamming/test/hamming_test.dart +54 -0
- data/tracks/dart/exercises/hello-world/lib/example.dart +3 -0
- data/tracks/dart/exercises/hello-world/lib/hello_world.dart +5 -0
- data/tracks/dart/exercises/hello-world/pubspec.lock +281 -0
- data/tracks/dart/exercises/hello-world/pubspec.yaml +3 -0
- data/tracks/dart/exercises/hello-world/test/hello_world_test.dart +24 -0
- data/tracks/dart/exercises/leap/lib/example.dart +13 -0
- data/tracks/dart/exercises/leap/lib/leap.dart +3 -0
- data/tracks/dart/exercises/leap/pubspec.lock +281 -0
- data/tracks/dart/exercises/leap/pubspec.yaml +3 -0
- data/tracks/dart/exercises/leap/test/leap_test.dart +30 -0
- data/tracks/dart/exercises/rna-transcription/lib/example.dart +18 -0
- data/tracks/dart/exercises/rna-transcription/lib/rna_transcription.dart +3 -0
- data/tracks/dart/exercises/rna-transcription/pubspec.lock +281 -0
- data/tracks/dart/exercises/rna-transcription/pubspec.yaml +3 -0
- data/tracks/dart/exercises/rna-transcription/test/rna_transcription_test.dart +48 -0
- data/tracks/dart/img/.keep +0 -0
- data/tracks/dart/img/icon.png +0 -0
- data/tracks/dart/img/icon.svg +37 -0
- data/tracks/dart/pubspec.lock +287 -0
- data/tracks/dart/pubspec.yaml +8 -0
- data/tracks/dart/test/exercises_test.dart +90 -0
- data/tracks/dart/tool/create-exercise +124 -0
- data/tracks/delphi/README.md +1 -1
- data/tracks/delphi/exercises/bank-account/uBankAccountTests.pas +12 -10
- data/tracks/delphi/exercises/hamming/uHammingExample.pas +5 -5
- data/tracks/delphi/exercises/hamming/uHammingTests.pas +46 -48
- data/tracks/ecmascript/.babelrc +3 -0
- data/tracks/ecmascript/config.json +25 -1
- data/tracks/ecmascript/exercises/accumulate/package.json +59 -11
- data/tracks/ecmascript/exercises/acronym/package.json +59 -11
- data/tracks/ecmascript/exercises/all-your-base/package.json +59 -11
- data/tracks/ecmascript/exercises/allergies/package.json +59 -11
- data/tracks/ecmascript/exercises/alphametics/alphametics.spec.js +95 -0
- data/tracks/ecmascript/exercises/alphametics/example.js +99 -0
- data/tracks/ecmascript/exercises/alphametics/package.json +122 -0
- data/tracks/ecmascript/exercises/anagram/package.json +59 -11
- data/tracks/ecmascript/exercises/atbash-cipher/package.json +59 -11
- data/tracks/ecmascript/exercises/beer-song/package.json +59 -11
- data/tracks/ecmascript/exercises/binary-search-tree/package.json +59 -11
- data/tracks/ecmascript/exercises/binary-search/package.json +59 -11
- data/tracks/ecmascript/exercises/binary/package.json +59 -11
- data/tracks/ecmascript/exercises/bob/package.json +59 -11
- data/tracks/ecmascript/exercises/bracket-push/package.json +59 -11
- data/tracks/ecmascript/exercises/circular-buffer/package.json +59 -11
- data/tracks/ecmascript/exercises/clock/package.json +59 -11
- data/tracks/ecmascript/exercises/connect/package.json +59 -11
- data/tracks/ecmascript/exercises/crypto-square/package.json +59 -11
- data/tracks/ecmascript/exercises/custom-set/package.json +59 -11
- data/tracks/ecmascript/exercises/diamond/package.json +59 -11
- data/tracks/ecmascript/exercises/difference-of-squares/package.json +59 -11
- data/tracks/ecmascript/exercises/etl/package.json +59 -11
- data/tracks/ecmascript/exercises/flatten-array/example.js +11 -0
- data/tracks/ecmascript/exercises/flatten-array/flatten-array.spec.js +41 -0
- data/tracks/ecmascript/exercises/flatten-array/package.json +74 -0
- data/tracks/ecmascript/exercises/food-chain/package.json +59 -11
- data/tracks/ecmascript/exercises/gigasecond/package.json +59 -11
- data/tracks/ecmascript/exercises/grade-school/package.json +59 -11
- data/tracks/ecmascript/exercises/grains/package.json +59 -11
- data/tracks/ecmascript/exercises/hamming/package.json +59 -11
- data/tracks/ecmascript/exercises/hello-world/package.json +59 -11
- data/tracks/ecmascript/exercises/hexadecimal/package.json +59 -11
- data/tracks/ecmascript/exercises/isogram/package.json +59 -11
- data/tracks/ecmascript/exercises/kindergarten-garden/package.json +59 -11
- data/tracks/ecmascript/exercises/largest-series-product/package.json +59 -11
- data/tracks/ecmascript/exercises/leap/package.json +59 -11
- data/tracks/ecmascript/exercises/linked-list/package.json +59 -11
- data/tracks/ecmascript/exercises/list-ops/example.js +77 -0
- data/tracks/ecmascript/exercises/list-ops/list-ops.spec.js +133 -0
- data/tracks/ecmascript/exercises/list-ops/package.json +74 -0
- data/tracks/ecmascript/exercises/luhn/package.json +59 -11
- data/tracks/ecmascript/exercises/matrix/package.json +59 -11
- data/tracks/ecmascript/exercises/meetup/package.json +59 -11
- data/tracks/ecmascript/exercises/nth-prime/package.json +59 -11
- data/tracks/ecmascript/exercises/ocr-numbers/package.json +59 -11
- data/tracks/ecmascript/exercises/octal/package.json +59 -11
- data/tracks/ecmascript/exercises/package.json +6 -8
- data/tracks/ecmascript/exercises/palindrome-products/package.json +59 -11
- data/tracks/ecmascript/exercises/pangram/package.json +59 -11
- data/tracks/ecmascript/exercises/pascals-triangle/package.json +59 -11
- data/tracks/ecmascript/exercises/perfect-numbers/package.json +59 -11
- data/tracks/ecmascript/exercises/phone-number/package.json +59 -11
- data/tracks/ecmascript/exercises/pig-latin/package.json +59 -11
- data/tracks/ecmascript/exercises/prime-factors/package.json +59 -11
- data/tracks/ecmascript/exercises/pythagorean-triplet/package.json +59 -11
- data/tracks/ecmascript/exercises/queen-attack/package.json +59 -11
- data/tracks/ecmascript/exercises/raindrops/package.json +59 -11
- data/tracks/ecmascript/exercises/rna-transcription/package.json +59 -11
- data/tracks/ecmascript/exercises/robot-name/package.json +59 -11
- data/tracks/ecmascript/exercises/robot-simulator/package.json +59 -11
- data/tracks/ecmascript/exercises/roman-numerals/package.json +59 -11
- data/tracks/ecmascript/exercises/saddle-points/package.json +59 -11
- data/tracks/ecmascript/exercises/say/package.json +59 -11
- data/tracks/ecmascript/exercises/scrabble-score/package.json +59 -11
- data/tracks/ecmascript/exercises/secret-handshake/package.json +59 -11
- data/tracks/ecmascript/exercises/series/package.json +59 -11
- data/tracks/ecmascript/exercises/sieve/package.json +59 -11
- data/tracks/ecmascript/exercises/simple-cipher/package.json +59 -11
- data/tracks/ecmascript/exercises/space-age/package.json +59 -11
- data/tracks/ecmascript/exercises/strain/package.json +59 -11
- data/tracks/ecmascript/exercises/sum-of-multiples/package.json +59 -11
- data/tracks/ecmascript/exercises/triangle/package.json +59 -11
- data/tracks/ecmascript/exercises/trinary/package.json +59 -11
- data/tracks/ecmascript/exercises/two-bucket/package.json +59 -11
- data/tracks/ecmascript/exercises/word-count/package.json +59 -11
- data/tracks/ecmascript/exercises/wordy/package.json +59 -11
- data/tracks/ecmascript/package-lock.json +2835 -0
- data/tracks/ecmascript/package.json +59 -11
- data/tracks/elixir/config.json +7 -0
- data/tracks/elixir/exercises/collatz-conjecture/collatz_conjecture.exs +12 -0
- data/tracks/elixir/exercises/collatz-conjecture/collatz_conjecture_test.exs +54 -0
- data/tracks/elixir/exercises/collatz-conjecture/example.exs +20 -0
- data/tracks/erlang/.github/stale.yml +2 -0
- data/tracks/erlang/exercises/rna-transcription/test/rna_transcription_tests.erl +3 -3
- data/tracks/factor/docs/INSTALLATION.md +27 -18
- data/tracks/factor/docs/TESTS.md +10 -6
- data/tracks/fortran/README.md +1 -1
- data/tracks/fortran/config.json +1 -1
- data/tracks/go/exercises/clock/.meta/gen.go +58 -65
- data/tracks/go/exercises/clock/cases_test.go +0 -4
- data/tracks/go/gen/gen.go +4 -0
- data/tracks/go/gen/property.go +70 -0
- data/tracks/groovy/README.md +1 -1
- data/tracks/groovy/config.json +2 -4
- data/tracks/groovy/exercises/roman-numerals/Example.groovy +10 -10
- data/tracks/groovy/exercises/roman-numerals/Roman.groovy +33 -0
- data/tracks/groovy/exercises/roman-numerals/RomanSpec.groovy +35 -0
- data/tracks/haskell/bin/test-example +7 -3
- data/tracks/haskell/bin/test-stub +5 -1
- data/tracks/haskell/config.json +6 -0
- data/tracks/haskell/exercises/pangram/package.yaml +1 -1
- data/tracks/haskell/exercises/pangram/test/Tests.hs +1 -1
- data/tracks/haskell/exercises/simple-linked-list/test/Tests.hs +4 -4
- data/tracks/haskell/exercises/spiral-matrix/examples/success-standard/package.yaml +16 -0
- data/tracks/haskell/exercises/spiral-matrix/examples/success-standard/src/Spiral.hs +17 -0
- data/tracks/haskell/exercises/spiral-matrix/package.yaml +20 -0
- data/tracks/haskell/exercises/spiral-matrix/src/Spiral.hs +4 -0
- data/tracks/haskell/exercises/spiral-matrix/stack.yaml +1 -0
- data/tracks/haskell/exercises/spiral-matrix/test/Tests.hs +40 -0
- data/tracks/haxe/README.md +1 -1
- data/tracks/haxe/config.json +1 -1
- data/tracks/java/CONTRIBUTING.md +8 -0
- data/tracks/java/POLICIES.md +2 -2
- data/tracks/java/README.md +9 -9
- data/tracks/java/config.json +40 -5
- data/tracks/java/docs/ABOUT.md +1 -1
- data/tracks/java/docs/MAINTAINING.md +1 -1
- data/tracks/java/exercises/bank-account/HINTS.md +11 -0
- data/tracks/java/exercises/bank-account/build.gradle +18 -0
- data/tracks/java/exercises/bank-account/src/example/java/BankAccount.java +53 -0
- data/tracks/java/exercises/bank-account/src/example/java/BankAccountActionInvalidException.java +6 -0
- data/tracks/java/exercises/bank-account/src/main/java/BankAccountActionInvalidException.java +6 -0
- data/tracks/java/exercises/bank-account/src/test/java/BankAccountTest.java +201 -0
- data/tracks/java/exercises/clock/{HINT.md → HINTS.md} +0 -0
- data/tracks/java/exercises/food-chain/build.gradle +17 -0
- data/tracks/java/exercises/food-chain/src/example/java/FoodChain.java +77 -0
- data/tracks/java/exercises/food-chain/src/main/java/.keep +0 -0
- data/tracks/java/exercises/food-chain/src/test/java/FoodChainTest.java +204 -0
- data/tracks/java/exercises/hamming/src/test/java/HammingTest.java +68 -26
- data/tracks/java/exercises/hello-world/HINTS.md +4 -0
- data/tracks/java/exercises/hello-world/TUTORIAL.md +111 -395
- data/tracks/java/exercises/hello-world/src/example/java/Greeter.java +7 -0
- data/tracks/java/exercises/hello-world/src/main/java/{HelloWorld.java → Greeter.java} +4 -2
- data/tracks/java/exercises/hello-world/src/test/java/GreeterTest.java +12 -0
- data/tracks/java/exercises/isogram/{HINT.md → HINTS.md} +0 -0
- data/tracks/java/exercises/kindergarten-garden/src/test/java/KindergartenGardenTest.java +4 -4
- data/tracks/java/exercises/minesweeper/src/example/java/MinesweeperBoard.java +5 -41
- data/tracks/java/exercises/minesweeper/src/test/java/MinesweeperBoardTest.java +39 -90
- data/tracks/java/exercises/palindrome-products/src/test/java/PalindromeCalculatorTest.java +3 -1
- data/tracks/java/exercises/pangram/src/test/java/PangramCheckerTest.java +8 -18
- data/tracks/java/exercises/perfect-numbers/src/test/java/NaturalNumberTest.java +0 -1
- data/tracks/java/exercises/poker/build.gradle +18 -0
- data/tracks/java/exercises/poker/src/example/java/Card.java +25 -0
- data/tracks/java/exercises/poker/src/example/java/Hand.java +104 -0
- data/tracks/java/exercises/poker/src/example/java/Poker.java +27 -0
- data/tracks/java/exercises/poker/src/main/java/Poker.java +2 -0
- data/tracks/java/exercises/poker/src/test/java/PokerTest.java +164 -0
- data/tracks/java/exercises/settings.gradle +5 -0
- data/tracks/java/exercises/simple-cipher/{HINT.md → HINTS.md} +0 -0
- data/tracks/java/exercises/transpose/build.gradle +17 -0
- data/tracks/java/exercises/transpose/src/example/java/Transpose.java +41 -0
- data/tracks/java/exercises/transpose/src/main/java/.keep +0 -0
- data/tracks/java/exercises/transpose/src/test/java/TransposeTest.java +264 -0
- data/tracks/java/exercises/two-fer/HINTS.md +38 -0
- data/tracks/java/exercises/two-fer/build.gradle +17 -0
- data/tracks/java/exercises/two-fer/src/example/java/Twofer.java +5 -0
- data/tracks/java/exercises/two-fer/src/main/java/Twofer.java +5 -0
- data/tracks/java/exercises/two-fer/src/test/java/TwoferTest.java +41 -0
- data/tracks/javascript/config.json +9 -0
- data/tracks/javascript/exercises/hello-world/HINTS.md +10 -27
- data/tracks/javascript/exercises/hello-world/hello-world.js +1 -1
- data/tracks/javascript/exercises/hello-world/hello-world.spec.js +2 -10
- data/tracks/javascript/exercises/phone-number/example.js +2 -2
- data/tracks/javascript/exercises/phone-number/phone-number.spec.js +51 -46
- data/tracks/javascript/exercises/simple-linked-list/example.js +119 -0
- data/tracks/javascript/exercises/simple-linked-list/simple-linked-list.spec.js +160 -0
- data/tracks/julia/config.json +11 -0
- data/tracks/julia/exercises/complex-numbers/HINTS.md +11 -0
- data/tracks/julia/exercises/complex-numbers/complex-numbers.jl +0 -0
- data/tracks/julia/exercises/complex-numbers/example.jl +41 -0
- data/tracks/julia/exercises/complex-numbers/runtests.jl +74 -0
- data/tracks/kotlin/README.md +8 -8
- data/tracks/kotlin/bin/journey-test.sh +1 -1
- data/tracks/kotlin/exercises/allergies/src/example/kotlin/Allergen.kt +1 -0
- data/tracks/kotlin/exercises/hamming/src/test/kotlin/HammingTest.kt +64 -14
- data/tracks/kotlin/exercises/hello-world/TUTORIAL.md +1 -2
- data/tracks/kotlin/exercises/pangram/src/test/kotlin/PangramTest.kt +5 -9
- data/tracks/kotlin/exercises/phone-number/src/example/kotlin/PhoneNumber.kt +1 -1
- data/tracks/kotlin/exercises/phone-number/src/test/kotlin/PhoneNumberTest.kt +21 -13
- data/tracks/kotlin/exercises/rna-transcription/src/test/kotlin/RnaTranscriptionTest.kt +15 -18
- data/tracks/kotlin/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/tracks/kotlin/gradle/wrapper/gradle-wrapper.properties +2 -2
- data/tracks/nasm/config.json +1 -1
- data/tracks/nim/README.md +2 -2
- data/tracks/nim/config.json +1 -1
- data/tracks/ocaml/exercises/all-your-base/test.ml +8 -8
- data/tracks/ocaml/exercises/bowling/test.ml +14 -15
- data/tracks/ocaml/exercises/hamming/test.ml +3 -3
- data/tracks/ocaml/tools/test-generator/templates/ocaml/bowling/test.ml +1 -1
- data/tracks/perl5/.travis.yml +1 -1
- data/tracks/perl5/README.md +1 -1
- data/tracks/perl5/bin/README.md +35 -0
- data/tracks/perl5/bin/cpanfile +4 -0
- data/tracks/perl5/bin/exercise-gen.pl +60 -0
- data/tracks/perl5/config.json +7 -0
- data/tracks/perl5/docs/INSTALLATION.md +23 -3
- data/tracks/perl5/exercises/bob/Bob.pm +4 -17
- data/tracks/perl5/exercises/bob/Example.pm +10 -11
- data/tracks/perl5/exercises/bob/bob.t +198 -51
- data/tracks/perl5/exercises/bob/example.yaml +41 -0
- data/tracks/perl5/exercises/hello-world/Example.pm +10 -0
- data/tracks/perl5/exercises/hello-world/HelloWorld.pm +10 -0
- data/tracks/perl5/exercises/hello-world/example.yaml +33 -0
- data/tracks/perl5/exercises/hello-world/hello-world.t +64 -0
- data/tracks/perl5/exercises/leap/Example.pm +9 -8
- data/tracks/perl5/exercises/leap/Leap.pm +11 -0
- data/tracks/perl5/exercises/leap/example.yaml +41 -0
- data/tracks/perl5/exercises/leap/leap.t +74 -17
- data/tracks/perl5/templates/module.mustache +8 -0
- data/tracks/perl5/templates/test.mustache +58 -0
- data/tracks/perl6/.travis.yml +1 -1
- data/tracks/perl6/README.md +1 -1
- data/tracks/perl6/bin/README.md +3 -3
- data/tracks/perl6/bin/exercise-gen.pl6 +2 -2
- data/tracks/perl6/exercises/all-your-base/all-your-base.t +6 -4
- data/tracks/perl6/exercises/allergies/allergies.t +6 -4
- data/tracks/perl6/exercises/anagram/anagram.t +6 -4
- data/tracks/perl6/exercises/atbash-cipher/atbash-cipher.t +6 -4
- data/tracks/perl6/exercises/bob/bob.t +6 -4
- data/tracks/perl6/exercises/clock/clock.t +6 -4
- data/tracks/perl6/exercises/flatten-array/flatten-array.t +6 -4
- data/tracks/perl6/exercises/grains/grains.t +6 -4
- data/tracks/perl6/exercises/hello-world/hello-world.t +6 -4
- data/tracks/perl6/exercises/leap/leap.t +6 -4
- data/tracks/perl6/exercises/luhn/luhn.t +6 -4
- data/tracks/perl6/exercises/phone-number/phone-number.t +6 -4
- data/tracks/perl6/exercises/raindrops/raindrops.t +6 -4
- data/tracks/perl6/exercises/rna-transcription/rna-transcription.t +15 -13
- data/tracks/perl6/exercises/scrabble-score/scrabble-score.t +6 -4
- data/tracks/perl6/exercises/space-age/space-age.t +6 -4
- data/tracks/perl6/exercises/word-count/word-count.t +6 -4
- data/tracks/perl6/exercises/wordy/wordy.t +6 -4
- data/tracks/perl6/templates/test.mustache +8 -7
- data/tracks/plsql/config.json +1 -1
- data/tracks/prolog/README.md +6 -6
- data/tracks/prolog/config.json +1 -1
- data/tracks/r/bin/run_tests.R +18 -10
- data/tracks/r/exercises/anagram/test_anagram.R +1 -1
- data/tracks/r/exercises/bob/test_bob.R +1 -1
- data/tracks/r/exercises/difference-of-squares/test_difference-of-squares.R +1 -1
- data/tracks/r/exercises/grains/test_grains.R +1 -1
- data/tracks/r/exercises/hamming/test_hamming.R +1 -1
- data/tracks/r/exercises/hello-world/test_hello-world.R +1 -1
- data/tracks/r/exercises/isogram/test_isogram.R +1 -1
- data/tracks/r/exercises/largest-series-product/test_largest-series-product.R +1 -1
- data/tracks/r/exercises/leap/test_leap.R +1 -1
- data/tracks/r/exercises/luhn/test_luhn.R +1 -1
- data/tracks/r/exercises/pascals-triangle/test_pascals-triangle.R +1 -1
- data/tracks/r/exercises/perfect-numbers/example.R +17 -1
- data/tracks/r/exercises/perfect-numbers/test_perfect-numbers.R +50 -33
- data/tracks/r/exercises/phone-number/test_phone-number.R +1 -1
- data/tracks/r/exercises/prime-factors/test_prime-factors.R +1 -1
- data/tracks/r/exercises/raindrops/test_raindrops.R +1 -1
- data/tracks/r/exercises/rna-transcription/test_rna-transcription.R +9 -9
- data/tracks/r/exercises/rotational-cipher/test_rotational-cipher.R +1 -1
- data/tracks/r/exercises/scrabble-score/test_scrabble-score.R +1 -1
- data/tracks/r/exercises/secret-handshake/test_secret-handshake.R +1 -1
- data/tracks/r/exercises/sieve/test_sieve.R +1 -1
- data/tracks/r/exercises/space-age/test_space-age.R +1 -1
- data/tracks/r/exercises/sum-of-multiples/test_sum-of-multiples.R +1 -1
- data/tracks/r/exercises/tournament/test_tournament.R +1 -1
- data/tracks/r/exercises/word-count/test_word-count.R +1 -1
- data/tracks/ruby/README.md +9 -9
- data/tracks/ruby/config.json +12 -0
- data/tracks/ruby/exercises/collatz-conjecture/.meta/.version +1 -0
- data/tracks/ruby/exercises/collatz-conjecture/.meta/generator/collatz_conjecture_case.rb +31 -0
- data/tracks/ruby/exercises/collatz-conjecture/.meta/solutions/collatz_conjecture.rb +22 -0
- data/tracks/ruby/exercises/collatz-conjecture/collatz_conjecture_test.rb +58 -0
- data/tracks/ruby/lib/generator/command_line.rb +6 -7
- data/tracks/ruby/lib/generator/command_line/generator_optparser.rb +2 -2
- data/tracks/ruby/lib/generator/files/metadata_files.rb +3 -3
- data/tracks/ruby/lib/generator/files/track_files.rb +22 -3
- data/tracks/ruby/lib/generator/implementation.rb +7 -5
- data/tracks/ruby/lib/generator/repository.rb +12 -0
- data/tracks/ruby/lib/generator/template_values.rb +1 -1
- data/tracks/ruby/lib/helper.rb +1 -1
- data/tracks/ruby/test/generator/command_line/generator_optparser_test.rb +2 -2
- data/tracks/ruby/test/generator/command_line_test.rb +2 -2
- data/tracks/ruby/test/generator/files/metadata_files_test.rb +2 -2
- data/tracks/ruby/test/generator/files/track_files_test.rb +9 -4
- data/tracks/ruby/test/generator/implementation_test.rb +11 -4
- data/tracks/ruby/test/generator/repository_test.rb +10 -0
- data/tracks/ruby/test/generator/template_values_test.rb +2 -4
- data/tracks/rust/exercises/bob/Cargo.toml +1 -1
- data/tracks/rust/exercises/bob/example.rs +4 -3
- data/tracks/rust/exercises/bob/tests/bob.rs +110 -9
- data/tracks/scala/config.json +0 -1
- data/tracks/scala/exercises/anagram/example.scala +7 -7
- data/tracks/scala/exercises/anagram/src/test/scala/AnagramTest.scala +73 -46
- data/tracks/scala/exercises/etl/example.scala +1 -1
- data/tracks/scala/exercises/etl/src/test/scala/EtlTest.scala +20 -34
- data/tracks/scala/exercises/grains/src/test/scala/GrainsTest.scala +21 -14
- data/tracks/scala/exercises/secret-handshake/example.scala +3 -3
- data/tracks/scala/exercises/secret-handshake/src/test/scala/SecretHandshakeTest.scala +28 -29
- data/tracks/scala/exercises/sieve/example.scala +1 -1
- data/tracks/scala/exercises/sieve/src/test/scala/SieveTest.scala +25 -23
- data/tracks/scala/exercises/triangle/example.scala +6 -22
- data/tracks/scala/exercises/triangle/src/test/scala/TriangleTest.scala +66 -19
- data/tracks/scala/testgen/src/main/scala/AnagramTestGenerator.scala +15 -0
- data/tracks/scala/testgen/src/main/scala/EtlTestGenerator.scala +52 -0
- data/tracks/scala/testgen/src/main/scala/GrainsTestGenerator.scala +50 -0
- data/tracks/scala/testgen/src/main/scala/SecretHandshakeTestGenerator.scala +15 -0
- data/tracks/scala/testgen/src/main/scala/SieveTestGenerator.scala +15 -0
- data/tracks/scala/testgen/src/main/scala/TriangleTestGenerator.scala +37 -0
- data/tracks/scala/testgen/src/main/scala/testgen/TestSuiteBuilder.scala +3 -0
- data/tracks/scheme/README.org +2 -2
- data/tracks/scheme/config.json +1 -1
- data/tracks/smalltalk/.gitignore +4 -0
- data/tracks/smalltalk/.travis.yml +5 -0
- data/tracks/smalltalk/LICENSE +21 -0
- data/tracks/smalltalk/README.md +11 -0
- data/tracks/smalltalk/bin/fetch-configlet +32 -0
- data/tracks/smalltalk/config.json +16 -0
- data/tracks/smalltalk/docs/ABOUT.md +0 -0
- data/tracks/smalltalk/docs/EXERCISE_README_INSERT.md +0 -0
- data/tracks/smalltalk/docs/INSTALLATION.md +0 -0
- data/tracks/smalltalk/docs/LEARNING.md +0 -0
- data/tracks/smalltalk/docs/RESOURCES.md +0 -0
- data/tracks/smalltalk/docs/TESTS.md +0 -0
- data/tracks/smalltalk/exercises/.keep +0 -0
- data/tracks/smalltalk/img/.keep +0 -0
- data/tracks/sml/config.json +1 -8
- data/tracks/tcl/README.md +1 -1
- data/tracks/tcl/config.json +1 -1
- data/tracks/teco/config.json +1 -1
- data/tracks/typescript/Makefile +1 -1
- data/tracks/typescript/appveyor.yml +18 -0
- data/tracks/typescript/common/package.json +7 -7
- data/tracks/typescript/common/tsconfig.json +1 -0
- data/tracks/typescript/common/yarn.lock +718 -1152
- data/tracks/typescript/config.json +45 -42
- data/tracks/typescript/exercises/anagram/package.json +7 -7
- data/tracks/typescript/exercises/anagram/tsconfig.json +1 -0
- data/tracks/typescript/exercises/anagram/yarn.lock +718 -1152
- data/tracks/typescript/exercises/beer-song/package.json +7 -7
- data/tracks/typescript/exercises/beer-song/tsconfig.json +1 -0
- data/tracks/typescript/exercises/beer-song/yarn.lock +718 -1152
- data/tracks/typescript/exercises/bob/package.json +7 -7
- data/tracks/typescript/exercises/bob/tsconfig.json +1 -0
- data/tracks/typescript/exercises/bob/yarn.lock +718 -1152
- data/tracks/typescript/exercises/difference-of-squares/package.json +7 -7
- data/tracks/typescript/exercises/difference-of-squares/tsconfig.json +1 -0
- data/tracks/typescript/exercises/difference-of-squares/yarn.lock +718 -1152
- data/tracks/typescript/exercises/etl/package.json +7 -7
- data/tracks/typescript/exercises/etl/tsconfig.json +1 -0
- data/tracks/typescript/exercises/etl/yarn.lock +718 -1152
- data/tracks/typescript/exercises/food-chain/package.json +7 -7
- data/tracks/typescript/exercises/food-chain/tsconfig.json +1 -0
- data/tracks/typescript/exercises/food-chain/yarn.lock +718 -1152
- data/tracks/typescript/exercises/gigasecond/package.json +7 -7
- data/tracks/typescript/exercises/gigasecond/tsconfig.json +1 -0
- data/tracks/typescript/exercises/gigasecond/yarn.lock +718 -1152
- data/tracks/typescript/exercises/grade-school/package.json +7 -7
- data/tracks/typescript/exercises/grade-school/tsconfig.json +1 -0
- data/tracks/typescript/exercises/grade-school/yarn.lock +718 -1152
- data/tracks/typescript/exercises/hamming/package.json +7 -7
- data/tracks/typescript/exercises/hamming/tsconfig.json +1 -0
- data/tracks/typescript/exercises/hamming/yarn.lock +718 -1152
- data/tracks/typescript/exercises/hello-world/package.json +7 -7
- data/tracks/typescript/exercises/hello-world/tsconfig.json +1 -0
- data/tracks/typescript/exercises/hello-world/yarn.lock +718 -1152
- data/tracks/typescript/exercises/leap/package.json +7 -7
- data/tracks/typescript/exercises/leap/tsconfig.json +1 -0
- data/tracks/typescript/exercises/leap/yarn.lock +718 -1152
- data/tracks/typescript/exercises/pangram/package.json +7 -7
- data/tracks/typescript/exercises/pangram/tsconfig.json +1 -0
- data/tracks/typescript/exercises/pangram/yarn.lock +718 -1152
- data/tracks/typescript/exercises/phone-number/package.json +7 -7
- data/tracks/typescript/exercises/phone-number/tsconfig.json +1 -0
- data/tracks/typescript/exercises/phone-number/yarn.lock +718 -1152
- data/tracks/typescript/exercises/raindrops/package.json +7 -7
- data/tracks/typescript/exercises/raindrops/tsconfig.json +1 -0
- data/tracks/typescript/exercises/raindrops/yarn.lock +718 -1152
- data/tracks/typescript/exercises/rna-transcription/package.json +7 -7
- data/tracks/typescript/exercises/rna-transcription/tsconfig.json +1 -0
- data/tracks/typescript/exercises/rna-transcription/yarn.lock +718 -1152
- data/tracks/typescript/exercises/robot-name/package.json +7 -7
- data/tracks/typescript/exercises/robot-name/robot-name.test.ts +0 -5
- data/tracks/typescript/exercises/robot-name/tsconfig.json +1 -0
- data/tracks/typescript/exercises/robot-name/yarn.lock +718 -1152
- data/tracks/typescript/exercises/say/package.json +7 -7
- data/tracks/typescript/exercises/say/tsconfig.json +1 -0
- data/tracks/typescript/exercises/say/yarn.lock +718 -1152
- data/tracks/typescript/exercises/scrabble-score/package.json +7 -7
- data/tracks/typescript/exercises/scrabble-score/scrabble-score.example.ts +1 -1
- data/tracks/typescript/exercises/scrabble-score/tsconfig.json +1 -0
- data/tracks/typescript/exercises/scrabble-score/yarn.lock +718 -1152
- data/tracks/typescript/exercises/space-age/package.json +7 -7
- data/tracks/typescript/exercises/space-age/tsconfig.json +1 -0
- data/tracks/typescript/exercises/space-age/yarn.lock +718 -1152
- data/tracks/typescript/exercises/word-count/package.json +7 -7
- data/tracks/typescript/exercises/word-count/tsconfig.json +1 -0
- data/tracks/typescript/exercises/word-count/yarn.lock +718 -1152
- data/tracks/typescript/exercises/wordy/package.json +7 -7
- data/tracks/typescript/exercises/wordy/tsconfig.json +1 -0
- data/tracks/typescript/exercises/wordy/yarn.lock +718 -1152
- data/tracks/vimscript/exercises/rna-transcription/example.vim +1 -1
- data/tracks/vimscript/exercises/rna-transcription/rna_transcription.vader +40 -16
- data/tracks/vimscript/exercises/rna-transcription/rna_transcription.vim +2 -4
- metadata +670 -497
- data/fixtures/tracks/animal/exercises/fish/included-via-symlink.txt +0 -1
- data/tracks/csharp/generators/Classes/TestClass.cs +0 -15
- data/tracks/csharp/generators/Classes/TestClassNameTransformer.cs +0 -9
- data/tracks/csharp/generators/Classes/TestClassRenderer.cs +0 -40
- data/tracks/csharp/generators/Classes/TestedClassNameTransformer.cs +0 -9
- data/tracks/csharp/generators/Data/CanonicalDataCase.cs +0 -24
- data/tracks/csharp/generators/Data/CanonicalDataCaseJsonConverter.cs +0 -32
- data/tracks/csharp/generators/Data/CanonicalDataValue.cs +0 -24
- data/tracks/csharp/generators/Data/ExerciseCollection.cs +0 -23
- data/tracks/csharp/generators/Exercises/AcronymExercise.cs +0 -20
- data/tracks/csharp/generators/Exercises/AtbashCipherExercise.cs +0 -20
- data/tracks/csharp/generators/Exercises/BeerSongExercise.cs +0 -33
- data/tracks/csharp/generators/Exercises/BooleanExercise.cs +0 -14
- data/tracks/csharp/generators/Exercises/EqualityExercise.cs +0 -19
- data/tracks/csharp/generators/Exercises/Exercise.cs +0 -81
- data/tracks/csharp/generators/Exercises/FoodChainExercise.cs +0 -27
- data/tracks/csharp/generators/Exercises/HelloWorldExercise.cs +0 -9
- data/tracks/csharp/generators/Exercises/IsogramExercise.cs +0 -9
- data/tracks/csharp/generators/Exercises/LeapExercise.cs +0 -9
- data/tracks/csharp/generators/Exercises/LuhnExercise.cs +0 -9
- data/tracks/csharp/generators/Exercises/NthPrimeExercise.cs +0 -22
- data/tracks/csharp/generators/Exercises/PerfectNumbersExercise.cs +0 -29
- data/tracks/csharp/generators/Exercises/PigLatinExercise.cs +0 -9
- data/tracks/csharp/generators/Exercises/RaindropsExercise.cs +0 -20
- data/tracks/csharp/generators/Exercises/RomanNumeralsExercise.cs +0 -30
- data/tracks/csharp/generators/Exercises/RotationalCipherExercise.cs +0 -23
- data/tracks/csharp/generators/Exercises/WordyExercise.cs +0 -20
- data/tracks/csharp/generators/Helpers/StringExtensions.cs +0 -8
- data/tracks/csharp/generators/Helpers/To.cs +0 -13
- data/tracks/csharp/generators/Methods/BooleanTestMethodGenerator.cs +0 -32
- data/tracks/csharp/generators/Methods/EqualityTestMethodGenerator.cs +0 -49
- data/tracks/csharp/generators/Methods/ExceptionTestMethodGenerator.cs +0 -30
- data/tracks/csharp/generators/Methods/TestMethod.cs +0 -12
- data/tracks/csharp/generators/Methods/TestMethodData.cs +0 -12
- data/tracks/csharp/generators/Methods/TestMethodGenerator.cs +0 -80
- data/tracks/csharp/generators/Methods/TestMethodNameTransformer.cs +0 -23
- data/tracks/csharp/generators/Methods/TestMethodOptions.cs +0 -15
- data/tracks/csharp/generators/Methods/TestMethodRenderer.cs +0 -26
- data/tracks/csharp/generators/Methods/TestedMethodNameTransformer.cs +0 -9
- data/tracks/groovy/exercises/roman-numerals/RomanTest.groovy +0 -96
- data/tracks/java/exercises/hello-world/GETTING_STARTED.md +0 -54
- data/tracks/java/exercises/hello-world/HINT.md +0 -7
- data/tracks/java/exercises/hello-world/src/example/java/HelloWorld.java +0 -9
- data/tracks/java/exercises/hello-world/src/test/java/HelloWorldTest.java +0 -32
- data/tracks/kotlin/exercises/allergies/src/example/kotlin/Allergen.kt +0 -10
@@ -0,0 +1,274 @@
|
|
1
|
+
/* ==========================================
|
2
|
+
Unity Project - A Test Framework for C
|
3
|
+
Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
|
4
|
+
[Released under MIT License. Please refer to license.txt for details]
|
5
|
+
========================================== */
|
6
|
+
|
7
|
+
#ifndef UNITY_FRAMEWORK_H
|
8
|
+
#define UNITY_FRAMEWORK_H
|
9
|
+
#define UNITY
|
10
|
+
|
11
|
+
#include "unity_internals.h"
|
12
|
+
|
13
|
+
//-------------------------------------------------------
|
14
|
+
// Configuration Options
|
15
|
+
//-------------------------------------------------------
|
16
|
+
// All options described below should be passed as a compiler flag to all files using Unity. If you must add #defines, place them BEFORE the #include above.
|
17
|
+
|
18
|
+
// Integers/longs/pointers
|
19
|
+
// - Unity attempts to automatically discover your integer sizes
|
20
|
+
// - define UNITY_EXCLUDE_STDINT_H to stop attempting to look in <stdint.h>
|
21
|
+
// - define UNITY_EXCLUDE_LIMITS_H to stop attempting to look in <limits.h>
|
22
|
+
// - define UNITY_EXCLUDE_SIZEOF to stop attempting to use sizeof in macros
|
23
|
+
// - If you cannot use the automatic methods above, you can force Unity by using these options:
|
24
|
+
// - define UNITY_SUPPORT_64
|
25
|
+
// - define UNITY_INT_WIDTH
|
26
|
+
// - UNITY_LONG_WIDTH
|
27
|
+
// - UNITY_POINTER_WIDTH
|
28
|
+
|
29
|
+
// Floats
|
30
|
+
// - define UNITY_EXCLUDE_FLOAT to disallow floating point comparisons
|
31
|
+
// - define UNITY_FLOAT_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_FLOAT
|
32
|
+
// - define UNITY_FLOAT_TYPE to specify doubles instead of single precision floats
|
33
|
+
// - define UNITY_FLOAT_VERBOSE to print floating point values in errors (uses sprintf)
|
34
|
+
// - define UNITY_INCLUDE_DOUBLE to allow double floating point comparisons
|
35
|
+
// - define UNITY_EXCLUDE_DOUBLE to disallow double floating point comparisons (default)
|
36
|
+
// - define UNITY_DOUBLE_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_DOUBLE
|
37
|
+
// - define UNITY_DOUBLE_TYPE to specify something other than double
|
38
|
+
// - define UNITY_DOUBLE_VERBOSE to print floating point values in errors (uses sprintf)
|
39
|
+
|
40
|
+
// Output
|
41
|
+
// - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired
|
42
|
+
|
43
|
+
// Optimization
|
44
|
+
// - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
|
45
|
+
// - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests.
|
46
|
+
|
47
|
+
// Test Cases
|
48
|
+
// - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
|
49
|
+
|
50
|
+
// Parameterized Tests
|
51
|
+
// - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing
|
52
|
+
|
53
|
+
//-------------------------------------------------------
|
54
|
+
// Basic Fail and Ignore
|
55
|
+
//-------------------------------------------------------
|
56
|
+
|
57
|
+
#define TEST_FAIL_MESSAGE(message) UNITY_TEST_FAIL(__LINE__, message)
|
58
|
+
#define TEST_FAIL() UNITY_TEST_FAIL(__LINE__, NULL)
|
59
|
+
#define TEST_IGNORE_MESSAGE(message) UNITY_TEST_IGNORE(__LINE__, message)
|
60
|
+
#define TEST_IGNORE() UNITY_TEST_IGNORE(__LINE__, NULL)
|
61
|
+
#define TEST_ONLY()
|
62
|
+
|
63
|
+
//-------------------------------------------------------
|
64
|
+
// Test Asserts (simple)
|
65
|
+
//-------------------------------------------------------
|
66
|
+
|
67
|
+
//Boolean
|
68
|
+
#define TEST_ASSERT(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expression Evaluated To FALSE")
|
69
|
+
#define TEST_ASSERT_TRUE(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expected TRUE Was FALSE")
|
70
|
+
#define TEST_ASSERT_UNLESS(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expression Evaluated To TRUE")
|
71
|
+
#define TEST_ASSERT_FALSE(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expected FALSE Was TRUE")
|
72
|
+
#define TEST_ASSERT_NULL(pointer) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, " Expected NULL")
|
73
|
+
#define TEST_ASSERT_NOT_NULL(pointer) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, " Expected Non-NULL")
|
74
|
+
|
75
|
+
//Integers (of all sizes)
|
76
|
+
#define TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
|
77
|
+
#define TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, NULL)
|
78
|
+
#define TEST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, NULL)
|
79
|
+
#define TEST_ASSERT_EQUAL_INT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, NULL)
|
80
|
+
#define TEST_ASSERT_EQUAL_INT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, NULL)
|
81
|
+
#define TEST_ASSERT_EQUAL(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
|
82
|
+
#define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, " Expected Not-Equal")
|
83
|
+
#define TEST_ASSERT_EQUAL_UINT(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, NULL)
|
84
|
+
#define TEST_ASSERT_EQUAL_UINT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, NULL)
|
85
|
+
#define TEST_ASSERT_EQUAL_UINT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, NULL)
|
86
|
+
#define TEST_ASSERT_EQUAL_UINT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, NULL)
|
87
|
+
#define TEST_ASSERT_EQUAL_UINT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, NULL)
|
88
|
+
#define TEST_ASSERT_EQUAL_HEX(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL)
|
89
|
+
#define TEST_ASSERT_EQUAL_HEX8(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, NULL)
|
90
|
+
#define TEST_ASSERT_EQUAL_HEX16(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, NULL)
|
91
|
+
#define TEST_ASSERT_EQUAL_HEX32(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL)
|
92
|
+
#define TEST_ASSERT_EQUAL_HEX64(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, NULL)
|
93
|
+
#define TEST_ASSERT_BITS(mask, expected, actual) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, NULL)
|
94
|
+
#define TEST_ASSERT_BITS_HIGH(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, NULL)
|
95
|
+
#define TEST_ASSERT_BITS_LOW(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, NULL)
|
96
|
+
#define TEST_ASSERT_BIT_HIGH(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << bit), (_UU32)(-1), (actual), __LINE__, NULL)
|
97
|
+
#define TEST_ASSERT_BIT_LOW(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << bit), (_UU32)(0), (actual), __LINE__, NULL)
|
98
|
+
|
99
|
+
//Integer Ranges (of all sizes)
|
100
|
+
#define TEST_ASSERT_INT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT_WITHIN(delta, expected, actual, __LINE__, NULL)
|
101
|
+
#define TEST_ASSERT_INT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT8_WITHIN(delta, expected, actual, __LINE__, NULL)
|
102
|
+
#define TEST_ASSERT_INT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT16_WITHIN(delta, expected, actual, __LINE__, NULL)
|
103
|
+
#define TEST_ASSERT_INT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT32_WITHIN(delta, expected, actual, __LINE__, NULL)
|
104
|
+
#define TEST_ASSERT_INT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, __LINE__, NULL)
|
105
|
+
#define TEST_ASSERT_UINT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT_WITHIN(delta, expected, actual, __LINE__, NULL)
|
106
|
+
#define TEST_ASSERT_UINT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT8_WITHIN(delta, expected, actual, __LINE__, NULL)
|
107
|
+
#define TEST_ASSERT_UINT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT16_WITHIN(delta, expected, actual, __LINE__, NULL)
|
108
|
+
#define TEST_ASSERT_UINT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT32_WITHIN(delta, expected, actual, __LINE__, NULL)
|
109
|
+
#define TEST_ASSERT_UINT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, __LINE__, NULL)
|
110
|
+
#define TEST_ASSERT_HEX_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN(delta, expected, actual, __LINE__, NULL)
|
111
|
+
#define TEST_ASSERT_HEX8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX8_WITHIN(delta, expected, actual, __LINE__, NULL)
|
112
|
+
#define TEST_ASSERT_HEX16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX16_WITHIN(delta, expected, actual, __LINE__, NULL)
|
113
|
+
#define TEST_ASSERT_HEX32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN(delta, expected, actual, __LINE__, NULL)
|
114
|
+
#define TEST_ASSERT_HEX64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, __LINE__, NULL)
|
115
|
+
|
116
|
+
//Structs and Strings
|
117
|
+
#define TEST_ASSERT_EQUAL_PTR(expected, actual) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, NULL)
|
118
|
+
#define TEST_ASSERT_EQUAL_STRING(expected, actual) UNITY_TEST_ASSERT_EQUAL_STRING(expected, actual, __LINE__, NULL)
|
119
|
+
#define TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len, __LINE__, NULL)
|
120
|
+
#define TEST_ASSERT_EQUAL_MEMORY(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_MEMORY(expected, actual, len, __LINE__, NULL)
|
121
|
+
|
122
|
+
//Arrays
|
123
|
+
#define TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
124
|
+
#define TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
125
|
+
#define TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
126
|
+
#define TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
127
|
+
#define TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
128
|
+
#define TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
129
|
+
#define TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
130
|
+
#define TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
131
|
+
#define TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
132
|
+
#define TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
133
|
+
#define TEST_ASSERT_EQUAL_HEX_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
134
|
+
#define TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
135
|
+
#define TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
136
|
+
#define TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
137
|
+
#define TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
138
|
+
#define TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
139
|
+
#define TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
140
|
+
#define TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements, __LINE__, NULL)
|
141
|
+
|
142
|
+
//Floating Point (If Enabled)
|
143
|
+
#define TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual, __LINE__, NULL)
|
144
|
+
#define TEST_ASSERT_EQUAL_FLOAT(expected, actual) UNITY_TEST_ASSERT_EQUAL_FLOAT(expected, actual, __LINE__, NULL)
|
145
|
+
#define TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
146
|
+
#define TEST_ASSERT_FLOAT_IS_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_INF(actual, __LINE__, NULL)
|
147
|
+
#define TEST_ASSERT_FLOAT_IS_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF(actual, __LINE__, NULL)
|
148
|
+
#define TEST_ASSERT_FLOAT_IS_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NAN(actual, __LINE__, NULL)
|
149
|
+
#define TEST_ASSERT_FLOAT_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE(actual, __LINE__, NULL)
|
150
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF(actual, __LINE__, NULL)
|
151
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual, __LINE__, NULL)
|
152
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN(actual, __LINE__, NULL)
|
153
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual, __LINE__, NULL)
|
154
|
+
|
155
|
+
//Double (If Enabled)
|
156
|
+
#define TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual, __LINE__, NULL)
|
157
|
+
#define TEST_ASSERT_EQUAL_DOUBLE(expected, actual) UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected, actual, __LINE__, NULL)
|
158
|
+
#define TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements, __LINE__, NULL)
|
159
|
+
#define TEST_ASSERT_DOUBLE_IS_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_INF(actual, __LINE__, NULL)
|
160
|
+
#define TEST_ASSERT_DOUBLE_IS_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF(actual, __LINE__, NULL)
|
161
|
+
#define TEST_ASSERT_DOUBLE_IS_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NAN(actual, __LINE__, NULL)
|
162
|
+
#define TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual, __LINE__, NULL)
|
163
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF(actual, __LINE__, NULL)
|
164
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual, __LINE__, NULL)
|
165
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual, __LINE__, NULL)
|
166
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, __LINE__, NULL)
|
167
|
+
|
168
|
+
//-------------------------------------------------------
|
169
|
+
// Test Asserts (with additional messages)
|
170
|
+
//-------------------------------------------------------
|
171
|
+
|
172
|
+
//Boolean
|
173
|
+
#define TEST_ASSERT_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, message)
|
174
|
+
#define TEST_ASSERT_TRUE_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, message)
|
175
|
+
#define TEST_ASSERT_UNLESS_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, message)
|
176
|
+
#define TEST_ASSERT_FALSE_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, message)
|
177
|
+
#define TEST_ASSERT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, message)
|
178
|
+
#define TEST_ASSERT_NOT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, message)
|
179
|
+
|
180
|
+
//Integers (of all sizes)
|
181
|
+
#define TEST_ASSERT_EQUAL_INT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, message)
|
182
|
+
#define TEST_ASSERT_EQUAL_INT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, message)
|
183
|
+
#define TEST_ASSERT_EQUAL_INT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, message)
|
184
|
+
#define TEST_ASSERT_EQUAL_INT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, message)
|
185
|
+
#define TEST_ASSERT_EQUAL_INT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, message)
|
186
|
+
#define TEST_ASSERT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, message)
|
187
|
+
#define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, message)
|
188
|
+
#define TEST_ASSERT_EQUAL_UINT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, message)
|
189
|
+
#define TEST_ASSERT_EQUAL_UINT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, message)
|
190
|
+
#define TEST_ASSERT_EQUAL_UINT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, message)
|
191
|
+
#define TEST_ASSERT_EQUAL_UINT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, message)
|
192
|
+
#define TEST_ASSERT_EQUAL_UINT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, message)
|
193
|
+
#define TEST_ASSERT_EQUAL_HEX_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, message)
|
194
|
+
#define TEST_ASSERT_EQUAL_HEX8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, message)
|
195
|
+
#define TEST_ASSERT_EQUAL_HEX16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, message)
|
196
|
+
#define TEST_ASSERT_EQUAL_HEX32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, message)
|
197
|
+
#define TEST_ASSERT_EQUAL_HEX64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, message)
|
198
|
+
#define TEST_ASSERT_BITS_MESSAGE(mask, expected, actual, message) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, message)
|
199
|
+
#define TEST_ASSERT_BITS_HIGH_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, message)
|
200
|
+
#define TEST_ASSERT_BITS_LOW_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, message)
|
201
|
+
#define TEST_ASSERT_BIT_HIGH_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << bit), (_UU32)(-1), (actual), __LINE__, message)
|
202
|
+
#define TEST_ASSERT_BIT_LOW_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << bit), (_UU32)(0), (actual), __LINE__, message)
|
203
|
+
|
204
|
+
//Integer Ranges (of all sizes)
|
205
|
+
#define TEST_ASSERT_INT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT_WITHIN(delta, expected, actual, __LINE__, message)
|
206
|
+
#define TEST_ASSERT_INT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT8_WITHIN(delta, expected, actual, __LINE__, message)
|
207
|
+
#define TEST_ASSERT_INT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT16_WITHIN(delta, expected, actual, __LINE__, message)
|
208
|
+
#define TEST_ASSERT_INT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT32_WITHIN(delta, expected, actual, __LINE__, message)
|
209
|
+
#define TEST_ASSERT_INT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, __LINE__, message)
|
210
|
+
#define TEST_ASSERT_UINT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT_WITHIN(delta, expected, actual, __LINE__, message)
|
211
|
+
#define TEST_ASSERT_UINT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT8_WITHIN(delta, expected, actual, __LINE__, message)
|
212
|
+
#define TEST_ASSERT_UINT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT16_WITHIN(delta, expected, actual, __LINE__, message)
|
213
|
+
#define TEST_ASSERT_UINT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT32_WITHIN(delta, expected, actual, __LINE__, message)
|
214
|
+
#define TEST_ASSERT_UINT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, __LINE__, message)
|
215
|
+
#define TEST_ASSERT_HEX_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN(delta, expected, actual, __LINE__, message)
|
216
|
+
#define TEST_ASSERT_HEX8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX8_WITHIN(delta, expected, actual, __LINE__, message)
|
217
|
+
#define TEST_ASSERT_HEX16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX16_WITHIN(delta, expected, actual, __LINE__, message)
|
218
|
+
#define TEST_ASSERT_HEX32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN(delta, expected, actual, __LINE__, message)
|
219
|
+
#define TEST_ASSERT_HEX64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, __LINE__, message)
|
220
|
+
|
221
|
+
//Structs and Strings
|
222
|
+
#define TEST_ASSERT_EQUAL_PTR_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, __LINE__, message)
|
223
|
+
#define TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_STRING(expected, actual, __LINE__, message)
|
224
|
+
#define TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len, __LINE__, message)
|
225
|
+
#define TEST_ASSERT_EQUAL_MEMORY_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_MEMORY(expected, actual, len, __LINE__, message)
|
226
|
+
|
227
|
+
//Arrays
|
228
|
+
#define TEST_ASSERT_EQUAL_INT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements, __LINE__, message)
|
229
|
+
#define TEST_ASSERT_EQUAL_INT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements, __LINE__, message)
|
230
|
+
#define TEST_ASSERT_EQUAL_INT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements, __LINE__, message)
|
231
|
+
#define TEST_ASSERT_EQUAL_INT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements, __LINE__, message)
|
232
|
+
#define TEST_ASSERT_EQUAL_INT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements, __LINE__, message)
|
233
|
+
#define TEST_ASSERT_EQUAL_UINT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements, __LINE__, message)
|
234
|
+
#define TEST_ASSERT_EQUAL_UINT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements, __LINE__, message)
|
235
|
+
#define TEST_ASSERT_EQUAL_UINT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements, __LINE__, message)
|
236
|
+
#define TEST_ASSERT_EQUAL_UINT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements, __LINE__, message)
|
237
|
+
#define TEST_ASSERT_EQUAL_UINT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements, __LINE__, message)
|
238
|
+
#define TEST_ASSERT_EQUAL_HEX_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements, __LINE__, message)
|
239
|
+
#define TEST_ASSERT_EQUAL_HEX8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements, __LINE__, message)
|
240
|
+
#define TEST_ASSERT_EQUAL_HEX16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements, __LINE__, message)
|
241
|
+
#define TEST_ASSERT_EQUAL_HEX32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements, __LINE__, message)
|
242
|
+
#define TEST_ASSERT_EQUAL_HEX64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements, __LINE__, message)
|
243
|
+
#define TEST_ASSERT_EQUAL_PTR_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements, __LINE__, message)
|
244
|
+
#define TEST_ASSERT_EQUAL_STRING_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements, __LINE__, message)
|
245
|
+
#define TEST_ASSERT_EQUAL_MEMORY_ARRAY_MESSAGE(expected, actual, len, num_elements, message) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements, __LINE__, message)
|
246
|
+
|
247
|
+
//Floating Point (If Enabled)
|
248
|
+
#define TEST_ASSERT_FLOAT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual, __LINE__, message)
|
249
|
+
#define TEST_ASSERT_EQUAL_FLOAT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_FLOAT(expected, actual, __LINE__, message)
|
250
|
+
#define TEST_ASSERT_EQUAL_FLOAT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements, __LINE__, message)
|
251
|
+
#define TEST_ASSERT_FLOAT_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_INF(actual, __LINE__, message)
|
252
|
+
#define TEST_ASSERT_FLOAT_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF(actual, __LINE__, message)
|
253
|
+
#define TEST_ASSERT_FLOAT_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NAN(actual, __LINE__, message)
|
254
|
+
#define TEST_ASSERT_FLOAT_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE(actual, __LINE__, message)
|
255
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF(actual, __LINE__, message)
|
256
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual, __LINE__, message)
|
257
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN(actual, __LINE__, message)
|
258
|
+
#define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual, __LINE__, message)
|
259
|
+
|
260
|
+
//Double (If Enabled)
|
261
|
+
#define TEST_ASSERT_DOUBLE_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual, __LINE__, message)
|
262
|
+
#define TEST_ASSERT_EQUAL_DOUBLE_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected, actual, __LINE__, message)
|
263
|
+
#define TEST_ASSERT_EQUAL_DOUBLE_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements, __LINE__, message)
|
264
|
+
#define TEST_ASSERT_DOUBLE_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_INF(actual, __LINE__, message)
|
265
|
+
#define TEST_ASSERT_DOUBLE_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF(actual, __LINE__, message)
|
266
|
+
#define TEST_ASSERT_DOUBLE_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NAN(actual, __LINE__, message)
|
267
|
+
#define TEST_ASSERT_DOUBLE_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual, __LINE__, message)
|
268
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF(actual, __LINE__, message)
|
269
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual, __LINE__, message)
|
270
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual, __LINE__, message)
|
271
|
+
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, __LINE__, message)
|
272
|
+
|
273
|
+
//end of UNITY_FRAMEWORK_H
|
274
|
+
#endif
|
@@ -0,0 +1,701 @@
|
|
1
|
+
/* ==========================================
|
2
|
+
Unity Project - A Test Framework for C
|
3
|
+
Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
|
4
|
+
[Released under MIT License. Please refer to license.txt for details]
|
5
|
+
========================================== */
|
6
|
+
|
7
|
+
#ifndef UNITY_INTERNALS_H
|
8
|
+
#define UNITY_INTERNALS_H
|
9
|
+
|
10
|
+
#ifdef UNITY_INCLUDE_CONFIG_H
|
11
|
+
#include "unity_config.h"
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#include <setjmp.h>
|
15
|
+
|
16
|
+
// Unity Attempts to Auto-Detect Integer Types
|
17
|
+
// Attempt 1: UINT_MAX, ULONG_MAX, etc in <stdint.h>
|
18
|
+
// Attempt 2: UINT_MAX, ULONG_MAX, etc in <limits.h>
|
19
|
+
// Attempt 3: Deduced from sizeof() macros
|
20
|
+
#ifndef UNITY_EXCLUDE_STDINT_H
|
21
|
+
#include <stdint.h>
|
22
|
+
#endif
|
23
|
+
|
24
|
+
#ifndef UNITY_EXCLUDE_LIMITS_H
|
25
|
+
#include <limits.h>
|
26
|
+
#endif
|
27
|
+
|
28
|
+
#ifndef UNITY_EXCLUDE_SIZEOF
|
29
|
+
#ifndef UINT_MAX
|
30
|
+
#define UINT_MAX (sizeof(unsigned int) * 256 - 1)
|
31
|
+
#endif
|
32
|
+
#ifndef ULONG_MAX
|
33
|
+
#define ULONG_MAX (sizeof(unsigned long) * 256 - 1)
|
34
|
+
#endif
|
35
|
+
#ifndef UINTPTR_MAX
|
36
|
+
//apparently this is not a constant expression: (sizeof(unsigned int *) * 256 - 1) so we have to just let this fall through
|
37
|
+
#endif
|
38
|
+
#endif
|
39
|
+
//-------------------------------------------------------
|
40
|
+
// Guess Widths If Not Specified
|
41
|
+
//-------------------------------------------------------
|
42
|
+
|
43
|
+
// Determine the size of an int, if not already specificied.
|
44
|
+
// We cannot use sizeof(int), because it is not yet defined
|
45
|
+
// at this stage in the trnslation of the C program.
|
46
|
+
// Therefore, infer it from UINT_MAX if possible.
|
47
|
+
#ifndef UNITY_INT_WIDTH
|
48
|
+
#ifdef UINT_MAX
|
49
|
+
#if (UINT_MAX == 0xFFFF)
|
50
|
+
#define UNITY_INT_WIDTH (16)
|
51
|
+
#elif (UINT_MAX == 0xFFFFFFFF)
|
52
|
+
#define UNITY_INT_WIDTH (32)
|
53
|
+
#elif (UINT_MAX == 0xFFFFFFFFFFFFFFFF)
|
54
|
+
#define UNITY_INT_WIDTH (64)
|
55
|
+
#endif
|
56
|
+
#endif
|
57
|
+
#endif
|
58
|
+
#ifndef UNITY_INT_WIDTH
|
59
|
+
#define UNITY_INT_WIDTH (32)
|
60
|
+
#endif
|
61
|
+
|
62
|
+
// Determine the size of a long, if not already specified,
|
63
|
+
// by following the process used above to define
|
64
|
+
// UNITY_INT_WIDTH.
|
65
|
+
#ifndef UNITY_LONG_WIDTH
|
66
|
+
#ifdef ULONG_MAX
|
67
|
+
#if (ULONG_MAX == 0xFFFF)
|
68
|
+
#define UNITY_LONG_WIDTH (16)
|
69
|
+
#elif (ULONG_MAX == 0xFFFFFFFF)
|
70
|
+
#define UNITY_LONG_WIDTH (32)
|
71
|
+
#elif (ULONG_MAX == 0xFFFFFFFFFFFFFFFF)
|
72
|
+
#define UNITY_LONG_WIDTH (64)
|
73
|
+
#endif
|
74
|
+
#endif
|
75
|
+
#endif
|
76
|
+
#ifndef UNITY_LONG_WIDTH
|
77
|
+
#define UNITY_LONG_WIDTH (32)
|
78
|
+
#endif
|
79
|
+
|
80
|
+
// Determine the size of a pointer, if not already specified,
|
81
|
+
// by following the process used above to define
|
82
|
+
// UNITY_INT_WIDTH.
|
83
|
+
#ifndef UNITY_POINTER_WIDTH
|
84
|
+
#ifdef UINTPTR_MAX
|
85
|
+
#if (UINTPTR_MAX+0 <= 0xFFFF)
|
86
|
+
#define UNITY_POINTER_WIDTH (16)
|
87
|
+
#elif (UINTPTR_MAX+0 <= 0xFFFFFFFF)
|
88
|
+
#define UNITY_POINTER_WIDTH (32)
|
89
|
+
#elif (UINTPTR_MAX+0 <= 0xFFFFFFFFFFFFFFFF)
|
90
|
+
#define UNITY_POINTER_WIDTH (64)
|
91
|
+
#endif
|
92
|
+
#endif
|
93
|
+
#endif
|
94
|
+
#ifndef UNITY_POINTER_WIDTH
|
95
|
+
#ifdef INTPTR_MAX
|
96
|
+
#if (INTPTR_MAX+0 <= 0x7FFF)
|
97
|
+
#define UNITY_POINTER_WIDTH (16)
|
98
|
+
#elif (INTPTR_MAX+0 <= 0x7FFFFFFF)
|
99
|
+
#define UNITY_POINTER_WIDTH (32)
|
100
|
+
#elif (INTPTR_MAX+0 <= 0x7FFFFFFFFFFFFFFF)
|
101
|
+
#define UNITY_POINTER_WIDTH (64)
|
102
|
+
#endif
|
103
|
+
#endif
|
104
|
+
#endif
|
105
|
+
#ifndef UNITY_POINTER_WIDTH
|
106
|
+
#define UNITY_POINTER_WIDTH UNITY_LONG_WIDTH
|
107
|
+
#endif
|
108
|
+
|
109
|
+
//-------------------------------------------------------
|
110
|
+
// Int Support (Define types based on detected sizes)
|
111
|
+
//-------------------------------------------------------
|
112
|
+
|
113
|
+
#if (UNITY_INT_WIDTH == 32)
|
114
|
+
typedef unsigned char _UU8;
|
115
|
+
typedef unsigned short _UU16;
|
116
|
+
typedef unsigned int _UU32;
|
117
|
+
typedef signed char _US8;
|
118
|
+
typedef signed short _US16;
|
119
|
+
typedef signed int _US32;
|
120
|
+
#elif (UNITY_INT_WIDTH == 16)
|
121
|
+
typedef unsigned char _UU8;
|
122
|
+
typedef unsigned int _UU16;
|
123
|
+
typedef unsigned long _UU32;
|
124
|
+
typedef signed char _US8;
|
125
|
+
typedef signed int _US16;
|
126
|
+
typedef signed long _US32;
|
127
|
+
#else
|
128
|
+
#error Invalid UNITY_INT_WIDTH specified! (16 or 32 are supported)
|
129
|
+
#endif
|
130
|
+
|
131
|
+
//-------------------------------------------------------
|
132
|
+
// 64-bit Support
|
133
|
+
//-------------------------------------------------------
|
134
|
+
|
135
|
+
#ifndef UNITY_SUPPORT_64
|
136
|
+
#if UNITY_LONG_WIDTH > 32
|
137
|
+
#define UNITY_SUPPORT_64
|
138
|
+
#endif
|
139
|
+
#endif
|
140
|
+
#ifndef UNITY_SUPPORT_64
|
141
|
+
#if UNITY_POINTER_WIDTH > 32
|
142
|
+
#define UNITY_SUPPORT_64
|
143
|
+
#endif
|
144
|
+
#endif
|
145
|
+
|
146
|
+
#ifndef UNITY_SUPPORT_64
|
147
|
+
|
148
|
+
//No 64-bit Support
|
149
|
+
typedef _UU32 _U_UINT;
|
150
|
+
typedef _US32 _U_SINT;
|
151
|
+
|
152
|
+
#else
|
153
|
+
|
154
|
+
//64-bit Support
|
155
|
+
#if (UNITY_LONG_WIDTH == 32)
|
156
|
+
typedef unsigned long long _UU64;
|
157
|
+
typedef signed long long _US64;
|
158
|
+
#elif (UNITY_LONG_WIDTH == 64)
|
159
|
+
typedef unsigned long _UU64;
|
160
|
+
typedef signed long _US64;
|
161
|
+
#else
|
162
|
+
#error Invalid UNITY_LONG_WIDTH specified! (32 or 64 are supported)
|
163
|
+
#endif
|
164
|
+
typedef _UU64 _U_UINT;
|
165
|
+
typedef _US64 _U_SINT;
|
166
|
+
|
167
|
+
#endif
|
168
|
+
|
169
|
+
//-------------------------------------------------------
|
170
|
+
// Pointer Support
|
171
|
+
//-------------------------------------------------------
|
172
|
+
|
173
|
+
#if (UNITY_POINTER_WIDTH == 32)
|
174
|
+
typedef _UU32 _UP;
|
175
|
+
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX32
|
176
|
+
#elif (UNITY_POINTER_WIDTH == 64)
|
177
|
+
typedef _UU64 _UP;
|
178
|
+
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX64
|
179
|
+
#elif (UNITY_POINTER_WIDTH == 16)
|
180
|
+
typedef _UU16 _UP;
|
181
|
+
#define UNITY_DISPLAY_STYLE_POINTER UNITY_DISPLAY_STYLE_HEX16
|
182
|
+
#else
|
183
|
+
#error Invalid UNITY_POINTER_WIDTH specified! (16, 32 or 64 are supported)
|
184
|
+
#endif
|
185
|
+
|
186
|
+
#ifndef UNITY_PTR_ATTRIBUTE
|
187
|
+
#define UNITY_PTR_ATTRIBUTE
|
188
|
+
#endif
|
189
|
+
|
190
|
+
//-------------------------------------------------------
|
191
|
+
// Float Support
|
192
|
+
//-------------------------------------------------------
|
193
|
+
|
194
|
+
#ifdef UNITY_EXCLUDE_FLOAT
|
195
|
+
|
196
|
+
//No Floating Point Support
|
197
|
+
#undef UNITY_INCLUDE_FLOAT
|
198
|
+
#undef UNITY_FLOAT_PRECISION
|
199
|
+
#undef UNITY_FLOAT_TYPE
|
200
|
+
#undef UNITY_FLOAT_VERBOSE
|
201
|
+
|
202
|
+
#else
|
203
|
+
|
204
|
+
#ifndef UNITY_INCLUDE_FLOAT
|
205
|
+
#define UNITY_INCLUDE_FLOAT
|
206
|
+
#endif
|
207
|
+
|
208
|
+
//Floating Point Support
|
209
|
+
#ifndef UNITY_FLOAT_PRECISION
|
210
|
+
#define UNITY_FLOAT_PRECISION (0.00001f)
|
211
|
+
#endif
|
212
|
+
#ifndef UNITY_FLOAT_TYPE
|
213
|
+
#define UNITY_FLOAT_TYPE float
|
214
|
+
#endif
|
215
|
+
typedef UNITY_FLOAT_TYPE _UF;
|
216
|
+
|
217
|
+
#endif
|
218
|
+
|
219
|
+
//-------------------------------------------------------
|
220
|
+
// Double Float Support
|
221
|
+
//-------------------------------------------------------
|
222
|
+
|
223
|
+
//unlike FLOAT, we DON'T include by default
|
224
|
+
#ifndef UNITY_EXCLUDE_DOUBLE
|
225
|
+
#ifndef UNITY_INCLUDE_DOUBLE
|
226
|
+
#define UNITY_EXCLUDE_DOUBLE
|
227
|
+
#endif
|
228
|
+
#endif
|
229
|
+
|
230
|
+
#ifdef UNITY_EXCLUDE_DOUBLE
|
231
|
+
|
232
|
+
//No Floating Point Support
|
233
|
+
#undef UNITY_DOUBLE_PRECISION
|
234
|
+
#undef UNITY_DOUBLE_TYPE
|
235
|
+
#undef UNITY_DOUBLE_VERBOSE
|
236
|
+
|
237
|
+
#ifdef UNITY_INCLUDE_DOUBLE
|
238
|
+
#undef UNITY_INCLUDE_DOUBLE
|
239
|
+
#endif
|
240
|
+
|
241
|
+
#else
|
242
|
+
|
243
|
+
//Double Floating Point Support
|
244
|
+
#ifndef UNITY_DOUBLE_PRECISION
|
245
|
+
#define UNITY_DOUBLE_PRECISION (1e-12f)
|
246
|
+
#endif
|
247
|
+
#ifndef UNITY_DOUBLE_TYPE
|
248
|
+
#define UNITY_DOUBLE_TYPE double
|
249
|
+
#endif
|
250
|
+
typedef UNITY_DOUBLE_TYPE _UD;
|
251
|
+
|
252
|
+
#endif
|
253
|
+
|
254
|
+
#ifdef UNITY_DOUBLE_VERBOSE
|
255
|
+
#ifndef UNITY_FLOAT_VERBOSE
|
256
|
+
#define UNITY_FLOAT_VERBOSE
|
257
|
+
#endif
|
258
|
+
#endif
|
259
|
+
|
260
|
+
//-------------------------------------------------------
|
261
|
+
// Output Method: stdout (DEFAULT)
|
262
|
+
//-------------------------------------------------------
|
263
|
+
#ifndef UNITY_OUTPUT_CHAR
|
264
|
+
//Default to using putchar, which is defined in stdio.h
|
265
|
+
#include <stdio.h>
|
266
|
+
#define UNITY_OUTPUT_CHAR(a) putchar(a)
|
267
|
+
#else
|
268
|
+
//If defined as something else, make sure we declare it here so it's ready for use
|
269
|
+
extern int UNITY_OUTPUT_CHAR(int);
|
270
|
+
#endif
|
271
|
+
|
272
|
+
#ifndef UNITY_OUTPUT_START
|
273
|
+
#define UNITY_OUTPUT_START()
|
274
|
+
#endif
|
275
|
+
|
276
|
+
#ifndef UNITY_OUTPUT_COMPLETE
|
277
|
+
#define UNITY_OUTPUT_COMPLETE()
|
278
|
+
#endif
|
279
|
+
|
280
|
+
//-------------------------------------------------------
|
281
|
+
// Footprint
|
282
|
+
//-------------------------------------------------------
|
283
|
+
|
284
|
+
#ifndef UNITY_LINE_TYPE
|
285
|
+
#define UNITY_LINE_TYPE _U_UINT
|
286
|
+
#endif
|
287
|
+
|
288
|
+
#ifndef UNITY_COUNTER_TYPE
|
289
|
+
#define UNITY_COUNTER_TYPE _U_UINT
|
290
|
+
#endif
|
291
|
+
|
292
|
+
//-------------------------------------------------------
|
293
|
+
// Language Features Available
|
294
|
+
//-------------------------------------------------------
|
295
|
+
#if !defined(UNITY_WEAK_ATTRIBUTE) && !defined(UNITY_WEAK_PRAGMA)
|
296
|
+
# ifdef __GNUC__ // includes clang
|
297
|
+
# if !(defined(__WIN32__) && defined(__clang__))
|
298
|
+
# define UNITY_WEAK_ATTRIBUTE __attribute__((weak))
|
299
|
+
# endif
|
300
|
+
# endif
|
301
|
+
#endif
|
302
|
+
|
303
|
+
#ifdef UNITY_NO_WEAK
|
304
|
+
# undef UNITY_WEAK_ATTRIBUTE
|
305
|
+
# undef UNITY_WEAK_PRAGMA
|
306
|
+
#endif
|
307
|
+
|
308
|
+
|
309
|
+
//-------------------------------------------------------
|
310
|
+
// Internal Structs Needed
|
311
|
+
//-------------------------------------------------------
|
312
|
+
|
313
|
+
typedef void (*UnityTestFunction)(void);
|
314
|
+
|
315
|
+
#define UNITY_DISPLAY_RANGE_INT (0x10)
|
316
|
+
#define UNITY_DISPLAY_RANGE_UINT (0x20)
|
317
|
+
#define UNITY_DISPLAY_RANGE_HEX (0x40)
|
318
|
+
#define UNITY_DISPLAY_RANGE_AUTO (0x80)
|
319
|
+
|
320
|
+
typedef enum
|
321
|
+
{
|
322
|
+
#if (UNITY_INT_WIDTH == 16)
|
323
|
+
UNITY_DISPLAY_STYLE_INT = 2 + UNITY_DISPLAY_RANGE_INT + UNITY_DISPLAY_RANGE_AUTO,
|
324
|
+
#elif (UNITY_INT_WIDTH == 32)
|
325
|
+
UNITY_DISPLAY_STYLE_INT = 4 + UNITY_DISPLAY_RANGE_INT + UNITY_DISPLAY_RANGE_AUTO,
|
326
|
+
#elif (UNITY_INT_WIDTH == 64)
|
327
|
+
UNITY_DISPLAY_STYLE_INT = 8 + UNITY_DISPLAY_RANGE_INT + UNITY_DISPLAY_RANGE_AUTO,
|
328
|
+
#endif
|
329
|
+
UNITY_DISPLAY_STYLE_INT8 = 1 + UNITY_DISPLAY_RANGE_INT,
|
330
|
+
UNITY_DISPLAY_STYLE_INT16 = 2 + UNITY_DISPLAY_RANGE_INT,
|
331
|
+
UNITY_DISPLAY_STYLE_INT32 = 4 + UNITY_DISPLAY_RANGE_INT,
|
332
|
+
#ifdef UNITY_SUPPORT_64
|
333
|
+
UNITY_DISPLAY_STYLE_INT64 = 8 + UNITY_DISPLAY_RANGE_INT,
|
334
|
+
#endif
|
335
|
+
|
336
|
+
#if (UNITY_INT_WIDTH == 16)
|
337
|
+
UNITY_DISPLAY_STYLE_UINT = 2 + UNITY_DISPLAY_RANGE_UINT + UNITY_DISPLAY_RANGE_AUTO,
|
338
|
+
#elif (UNITY_INT_WIDTH == 32)
|
339
|
+
UNITY_DISPLAY_STYLE_UINT = 4 + UNITY_DISPLAY_RANGE_UINT + UNITY_DISPLAY_RANGE_AUTO,
|
340
|
+
#elif (UNITY_INT_WIDTH == 64)
|
341
|
+
UNITY_DISPLAY_STYLE_UINT = 8 + UNITY_DISPLAY_RANGE_UINT + UNITY_DISPLAY_RANGE_AUTO,
|
342
|
+
#endif
|
343
|
+
UNITY_DISPLAY_STYLE_UINT8 = 1 + UNITY_DISPLAY_RANGE_UINT,
|
344
|
+
UNITY_DISPLAY_STYLE_UINT16 = 2 + UNITY_DISPLAY_RANGE_UINT,
|
345
|
+
UNITY_DISPLAY_STYLE_UINT32 = 4 + UNITY_DISPLAY_RANGE_UINT,
|
346
|
+
#ifdef UNITY_SUPPORT_64
|
347
|
+
UNITY_DISPLAY_STYLE_UINT64 = 8 + UNITY_DISPLAY_RANGE_UINT,
|
348
|
+
#endif
|
349
|
+
UNITY_DISPLAY_STYLE_HEX8 = 1 + UNITY_DISPLAY_RANGE_HEX,
|
350
|
+
UNITY_DISPLAY_STYLE_HEX16 = 2 + UNITY_DISPLAY_RANGE_HEX,
|
351
|
+
UNITY_DISPLAY_STYLE_HEX32 = 4 + UNITY_DISPLAY_RANGE_HEX,
|
352
|
+
#ifdef UNITY_SUPPORT_64
|
353
|
+
UNITY_DISPLAY_STYLE_HEX64 = 8 + UNITY_DISPLAY_RANGE_HEX,
|
354
|
+
#endif
|
355
|
+
UNITY_DISPLAY_STYLE_UNKNOWN
|
356
|
+
} UNITY_DISPLAY_STYLE_T;
|
357
|
+
|
358
|
+
#ifndef UNITY_EXCLUDE_FLOAT
|
359
|
+
typedef enum _UNITY_FLOAT_TRAIT_T
|
360
|
+
{
|
361
|
+
UNITY_FLOAT_IS_NOT_INF = 0,
|
362
|
+
UNITY_FLOAT_IS_INF,
|
363
|
+
UNITY_FLOAT_IS_NOT_NEG_INF,
|
364
|
+
UNITY_FLOAT_IS_NEG_INF,
|
365
|
+
UNITY_FLOAT_IS_NOT_NAN,
|
366
|
+
UNITY_FLOAT_IS_NAN,
|
367
|
+
UNITY_FLOAT_IS_NOT_DET,
|
368
|
+
UNITY_FLOAT_IS_DET,
|
369
|
+
} UNITY_FLOAT_TRAIT_T;
|
370
|
+
#endif
|
371
|
+
|
372
|
+
struct _Unity
|
373
|
+
{
|
374
|
+
const char* TestFile;
|
375
|
+
const char* CurrentTestName;
|
376
|
+
UNITY_LINE_TYPE CurrentTestLineNumber;
|
377
|
+
UNITY_COUNTER_TYPE NumberOfTests;
|
378
|
+
UNITY_COUNTER_TYPE TestFailures;
|
379
|
+
UNITY_COUNTER_TYPE TestIgnores;
|
380
|
+
UNITY_COUNTER_TYPE CurrentTestFailed;
|
381
|
+
UNITY_COUNTER_TYPE CurrentTestIgnored;
|
382
|
+
jmp_buf AbortFrame;
|
383
|
+
};
|
384
|
+
|
385
|
+
extern struct _Unity Unity;
|
386
|
+
|
387
|
+
//-------------------------------------------------------
|
388
|
+
// Test Suite Management
|
389
|
+
//-------------------------------------------------------
|
390
|
+
|
391
|
+
void UnityBegin(const char* filename);
|
392
|
+
int UnityEnd(void);
|
393
|
+
void UnityConcludeTest(void);
|
394
|
+
void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum);
|
395
|
+
|
396
|
+
//-------------------------------------------------------
|
397
|
+
// Test Output
|
398
|
+
//-------------------------------------------------------
|
399
|
+
|
400
|
+
void UnityPrint(const char* string);
|
401
|
+
void UnityPrintMask(const _U_UINT mask, const _U_UINT number);
|
402
|
+
void UnityPrintNumberByStyle(const _U_SINT number, const UNITY_DISPLAY_STYLE_T style);
|
403
|
+
void UnityPrintNumber(const _U_SINT number);
|
404
|
+
void UnityPrintNumberUnsigned(const _U_UINT number);
|
405
|
+
void UnityPrintNumberHex(const _U_UINT number, const char nibbles);
|
406
|
+
|
407
|
+
#ifdef UNITY_FLOAT_VERBOSE
|
408
|
+
void UnityPrintFloat(const _UF number);
|
409
|
+
#endif
|
410
|
+
|
411
|
+
//-------------------------------------------------------
|
412
|
+
// Test Assertion Fuctions
|
413
|
+
//-------------------------------------------------------
|
414
|
+
// Use the macros below this section instead of calling
|
415
|
+
// these directly. The macros have a consistent naming
|
416
|
+
// convention and will pull in file and line information
|
417
|
+
// for you.
|
418
|
+
|
419
|
+
void UnityAssertEqualNumber(const _U_SINT expected,
|
420
|
+
const _U_SINT actual,
|
421
|
+
const char* msg,
|
422
|
+
const UNITY_LINE_TYPE lineNumber,
|
423
|
+
const UNITY_DISPLAY_STYLE_T style);
|
424
|
+
|
425
|
+
void UnityAssertEqualIntArray(UNITY_PTR_ATTRIBUTE const void* expected,
|
426
|
+
UNITY_PTR_ATTRIBUTE const void* actual,
|
427
|
+
const _UU32 num_elements,
|
428
|
+
const char* msg,
|
429
|
+
const UNITY_LINE_TYPE lineNumber,
|
430
|
+
const UNITY_DISPLAY_STYLE_T style);
|
431
|
+
|
432
|
+
void UnityAssertBits(const _U_SINT mask,
|
433
|
+
const _U_SINT expected,
|
434
|
+
const _U_SINT actual,
|
435
|
+
const char* msg,
|
436
|
+
const UNITY_LINE_TYPE lineNumber);
|
437
|
+
|
438
|
+
void UnityAssertEqualString(const char* expected,
|
439
|
+
const char* actual,
|
440
|
+
const char* msg,
|
441
|
+
const UNITY_LINE_TYPE lineNumber);
|
442
|
+
|
443
|
+
void UnityAssertEqualStringLen(const char* expected,
|
444
|
+
const char* actual,
|
445
|
+
const _UU32 length,
|
446
|
+
const char* msg,
|
447
|
+
const UNITY_LINE_TYPE lineNumber);
|
448
|
+
|
449
|
+
void UnityAssertEqualStringArray( const char** expected,
|
450
|
+
const char** actual,
|
451
|
+
const _UU32 num_elements,
|
452
|
+
const char* msg,
|
453
|
+
const UNITY_LINE_TYPE lineNumber);
|
454
|
+
|
455
|
+
void UnityAssertEqualMemory( UNITY_PTR_ATTRIBUTE const void* expected,
|
456
|
+
UNITY_PTR_ATTRIBUTE const void* actual,
|
457
|
+
const _UU32 length,
|
458
|
+
const _UU32 num_elements,
|
459
|
+
const char* msg,
|
460
|
+
const UNITY_LINE_TYPE lineNumber);
|
461
|
+
|
462
|
+
void UnityAssertNumbersWithin(const _U_SINT delta,
|
463
|
+
const _U_SINT expected,
|
464
|
+
const _U_SINT actual,
|
465
|
+
const char* msg,
|
466
|
+
const UNITY_LINE_TYPE lineNumber,
|
467
|
+
const UNITY_DISPLAY_STYLE_T style);
|
468
|
+
|
469
|
+
void UnityFail(const char* message, const UNITY_LINE_TYPE line);
|
470
|
+
|
471
|
+
void UnityIgnore(const char* message, const UNITY_LINE_TYPE line);
|
472
|
+
|
473
|
+
#ifndef UNITY_EXCLUDE_FLOAT
|
474
|
+
void UnityAssertFloatsWithin(const _UF delta,
|
475
|
+
const _UF expected,
|
476
|
+
const _UF actual,
|
477
|
+
const char* msg,
|
478
|
+
const UNITY_LINE_TYPE lineNumber);
|
479
|
+
|
480
|
+
void UnityAssertEqualFloatArray(UNITY_PTR_ATTRIBUTE const _UF* expected,
|
481
|
+
UNITY_PTR_ATTRIBUTE const _UF* actual,
|
482
|
+
const _UU32 num_elements,
|
483
|
+
const char* msg,
|
484
|
+
const UNITY_LINE_TYPE lineNumber);
|
485
|
+
|
486
|
+
void UnityAssertFloatSpecial(const _UF actual,
|
487
|
+
const char* msg,
|
488
|
+
const UNITY_LINE_TYPE lineNumber,
|
489
|
+
const UNITY_FLOAT_TRAIT_T style);
|
490
|
+
#endif
|
491
|
+
|
492
|
+
#ifndef UNITY_EXCLUDE_DOUBLE
|
493
|
+
void UnityAssertDoublesWithin(const _UD delta,
|
494
|
+
const _UD expected,
|
495
|
+
const _UD actual,
|
496
|
+
const char* msg,
|
497
|
+
const UNITY_LINE_TYPE lineNumber);
|
498
|
+
|
499
|
+
void UnityAssertEqualDoubleArray(UNITY_PTR_ATTRIBUTE const _UD* expected,
|
500
|
+
UNITY_PTR_ATTRIBUTE const _UD* actual,
|
501
|
+
const _UU32 num_elements,
|
502
|
+
const char* msg,
|
503
|
+
const UNITY_LINE_TYPE lineNumber);
|
504
|
+
|
505
|
+
void UnityAssertDoubleSpecial(const _UD actual,
|
506
|
+
const char* msg,
|
507
|
+
const UNITY_LINE_TYPE lineNumber,
|
508
|
+
const UNITY_FLOAT_TRAIT_T style);
|
509
|
+
#endif
|
510
|
+
|
511
|
+
//-------------------------------------------------------
|
512
|
+
// Error Strings We Might Need
|
513
|
+
//-------------------------------------------------------
|
514
|
+
|
515
|
+
extern const char UnityStrErrFloat[];
|
516
|
+
extern const char UnityStrErrDouble[];
|
517
|
+
extern const char UnityStrErr64[];
|
518
|
+
|
519
|
+
//-------------------------------------------------------
|
520
|
+
// Test Running Macros
|
521
|
+
//-------------------------------------------------------
|
522
|
+
|
523
|
+
#define TEST_PROTECT() (setjmp(Unity.AbortFrame) == 0)
|
524
|
+
|
525
|
+
#define TEST_ABORT() {longjmp(Unity.AbortFrame, 1);}
|
526
|
+
|
527
|
+
//This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, num=__LINE__)
|
528
|
+
#ifndef RUN_TEST
|
529
|
+
#ifdef __STDC_VERSION__
|
530
|
+
#if __STDC_VERSION__ >= 199901L
|
531
|
+
#define RUN_TEST(...) UnityDefaultTestRun(RUN_TEST_FIRST(__VA_ARGS__), RUN_TEST_SECOND(__VA_ARGS__))
|
532
|
+
#define RUN_TEST_FIRST(...) RUN_TEST_FIRST_HELPER(__VA_ARGS__, throwaway)
|
533
|
+
#define RUN_TEST_FIRST_HELPER(first,...) first, #first
|
534
|
+
#define RUN_TEST_SECOND(...) RUN_TEST_SECOND_HELPER(__VA_ARGS__, __LINE__, throwaway)
|
535
|
+
#define RUN_TEST_SECOND_HELPER(first,second,...) second
|
536
|
+
#endif
|
537
|
+
#endif
|
538
|
+
#endif
|
539
|
+
|
540
|
+
//If we can't do the tricky version, we'll just have to require them to always include the line number
|
541
|
+
#ifndef RUN_TEST
|
542
|
+
#ifdef CMOCK
|
543
|
+
#define RUN_TEST(func, num) UnityDefaultTestRun(func, #func, num)
|
544
|
+
#else
|
545
|
+
#define RUN_TEST(func) UnityDefaultTestRun(func, #func, __LINE__)
|
546
|
+
#endif
|
547
|
+
#endif
|
548
|
+
|
549
|
+
#define TEST_LINE_NUM (Unity.CurrentTestLineNumber)
|
550
|
+
#define TEST_IS_IGNORED (Unity.CurrentTestIgnored)
|
551
|
+
#define UNITY_NEW_TEST(a) \
|
552
|
+
Unity.CurrentTestName = a; \
|
553
|
+
Unity.CurrentTestLineNumber = (UNITY_LINE_TYPE)(__LINE__); \
|
554
|
+
Unity.NumberOfTests++;
|
555
|
+
|
556
|
+
#ifndef UNITY_BEGIN
|
557
|
+
#define UNITY_BEGIN() UnityBegin(__FILE__)
|
558
|
+
#endif
|
559
|
+
|
560
|
+
#ifndef UNITY_END
|
561
|
+
#define UNITY_END() UnityEnd()
|
562
|
+
#endif
|
563
|
+
|
564
|
+
#define UNITY_UNUSED(x) (void)(sizeof(x))
|
565
|
+
|
566
|
+
//-------------------------------------------------------
|
567
|
+
// Basic Fail and Ignore
|
568
|
+
//-------------------------------------------------------
|
569
|
+
|
570
|
+
#define UNITY_TEST_FAIL(line, message) UnityFail( (message), (UNITY_LINE_TYPE)line);
|
571
|
+
#define UNITY_TEST_IGNORE(line, message) UnityIgnore( (message), (UNITY_LINE_TYPE)line);
|
572
|
+
|
573
|
+
//-------------------------------------------------------
|
574
|
+
// Test Asserts
|
575
|
+
//-------------------------------------------------------
|
576
|
+
|
577
|
+
#define UNITY_TEST_ASSERT(condition, line, message) if (condition) {} else {UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, message);}
|
578
|
+
#define UNITY_TEST_ASSERT_NULL(pointer, line, message) UNITY_TEST_ASSERT(((pointer) == NULL), (UNITY_LINE_TYPE)line, message)
|
579
|
+
#define UNITY_TEST_ASSERT_NOT_NULL(pointer, line, message) UNITY_TEST_ASSERT(((pointer) != NULL), (UNITY_LINE_TYPE)line, message)
|
580
|
+
|
581
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT)
|
582
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT8(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_US8 )(expected), (_U_SINT)(_US8 )(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT8)
|
583
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT16(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_US16)(expected), (_U_SINT)(_US16)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT16)
|
584
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT32(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_US32)(expected), (_U_SINT)(_US32)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT32)
|
585
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT)
|
586
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT8(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_UU8 )(expected), (_U_SINT)(_UU8 )(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT8)
|
587
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT16(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_UU16)(expected), (_U_SINT)(_UU16)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT16)
|
588
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT32(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_UU32)(expected), (_U_SINT)(_UU32)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT32)
|
589
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX8(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_US8 )(expected), (_U_SINT)(_US8 )(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX8)
|
590
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX16(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_US16)(expected), (_U_SINT)(_US16)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX16)
|
591
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX32(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_US32)(expected), (_U_SINT)(_US32)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX32)
|
592
|
+
#define UNITY_TEST_ASSERT_BITS(mask, expected, actual, line, message) UnityAssertBits((_U_SINT)(mask), (_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line)
|
593
|
+
|
594
|
+
#define UNITY_TEST_ASSERT_INT_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(delta), (_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT)
|
595
|
+
#define UNITY_TEST_ASSERT_INT8_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_US8 )(delta), (_U_SINT)(_US8 )(expected), (_U_SINT)(_US8 )(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT8)
|
596
|
+
#define UNITY_TEST_ASSERT_INT16_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_US16)(delta), (_U_SINT)(_US16)(expected), (_U_SINT)(_US16)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT16)
|
597
|
+
#define UNITY_TEST_ASSERT_INT32_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_US32)(delta), (_U_SINT)(_US32)(expected), (_U_SINT)(_US32)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT32)
|
598
|
+
#define UNITY_TEST_ASSERT_UINT_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(delta), (_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT)
|
599
|
+
#define UNITY_TEST_ASSERT_UINT8_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_U_UINT)(_UU8 )(delta), (_U_SINT)(_U_UINT)(_UU8 )(expected), (_U_SINT)(_U_UINT)(_UU8 )(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT8)
|
600
|
+
#define UNITY_TEST_ASSERT_UINT16_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_U_UINT)(_UU16)(delta), (_U_SINT)(_U_UINT)(_UU16)(expected), (_U_SINT)(_U_UINT)(_UU16)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT16)
|
601
|
+
#define UNITY_TEST_ASSERT_UINT32_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_U_UINT)(_UU32)(delta), (_U_SINT)(_U_UINT)(_UU32)(expected), (_U_SINT)(_U_UINT)(_UU32)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT32)
|
602
|
+
#define UNITY_TEST_ASSERT_HEX8_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_U_UINT)(_UU8 )(delta), (_U_SINT)(_U_UINT)(_UU8 )(expected), (_U_SINT)(_U_UINT)(_UU8 )(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX8)
|
603
|
+
#define UNITY_TEST_ASSERT_HEX16_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_U_UINT)(_UU16)(delta), (_U_SINT)(_U_UINT)(_UU16)(expected), (_U_SINT)(_U_UINT)(_UU16)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX16)
|
604
|
+
#define UNITY_TEST_ASSERT_HEX32_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(_U_UINT)(_UU32)(delta), (_U_SINT)(_U_UINT)(_UU32)(expected), (_U_SINT)(_U_UINT)(_UU32)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX32)
|
605
|
+
|
606
|
+
#define UNITY_TEST_ASSERT_EQUAL_PTR(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(_UP)(expected), (_U_SINT)(_UP)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_POINTER)
|
607
|
+
#define UNITY_TEST_ASSERT_EQUAL_STRING(expected, actual, line, message) UnityAssertEqualString((const char*)(expected), (const char*)(actual), (message), (UNITY_LINE_TYPE)line)
|
608
|
+
#define UNITY_TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len, line, message) UnityAssertEqualStringLen((const char*)(expected), (const char*)(actual), (_UU32)(len), (message), (UNITY_LINE_TYPE)line)
|
609
|
+
#define UNITY_TEST_ASSERT_EQUAL_MEMORY(expected, actual, len, line, message) UnityAssertEqualMemory((UNITY_PTR_ATTRIBUTE void*)(expected), (UNITY_PTR_ATTRIBUTE void*)(actual), (_UU32)(len), 1, (message), (UNITY_LINE_TYPE)line)
|
610
|
+
|
611
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT)
|
612
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT8)
|
613
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT16)
|
614
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT32)
|
615
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT)
|
616
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT8)
|
617
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT16)
|
618
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT32)
|
619
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX8)
|
620
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX16)
|
621
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(expected), (UNITY_PTR_ATTRIBUTE const void*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX32)
|
622
|
+
#define UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const void*)(_UP*)(expected), (const void*)(_UP*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_POINTER)
|
623
|
+
#define UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualStringArray((const char**)(expected), (const char**)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line)
|
624
|
+
#define UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements, line, message) UnityAssertEqualMemory((UNITY_PTR_ATTRIBUTE void*)(expected), (UNITY_PTR_ATTRIBUTE void*)(actual), (_UU32)(len), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line)
|
625
|
+
|
626
|
+
#ifdef UNITY_SUPPORT_64
|
627
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT64)
|
628
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT64)
|
629
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64(expected, actual, line, message) UnityAssertEqualNumber((_U_SINT)(expected), (_U_SINT)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX64)
|
630
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const _U_SINT*)(expected), (UNITY_PTR_ATTRIBUTE const _U_SINT*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT64)
|
631
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const _U_SINT*)(expected), (UNITY_PTR_ATTRIBUTE const _U_SINT*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT64)
|
632
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualIntArray((UNITY_PTR_ATTRIBUTE const _U_SINT*)(expected), (UNITY_PTR_ATTRIBUTE const _U_SINT*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX64)
|
633
|
+
#define UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(delta), (_U_SINT)(expected), (_U_SINT)(actual), NULL, (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_INT64)
|
634
|
+
#define UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(delta), (_U_SINT)(expected), (_U_SINT)(actual), NULL, (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_UINT64)
|
635
|
+
#define UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, line, message) UnityAssertNumbersWithin((_U_SINT)(delta), (_U_SINT)(expected), (_U_SINT)(actual), NULL, (UNITY_LINE_TYPE)line, UNITY_DISPLAY_STYLE_HEX64)
|
636
|
+
#else
|
637
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
638
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
639
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
640
|
+
#define UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
641
|
+
#define UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
642
|
+
#define UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
643
|
+
#define UNITY_TEST_ASSERT_INT64_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
644
|
+
#define UNITY_TEST_ASSERT_UINT64_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
645
|
+
#define UNITY_TEST_ASSERT_HEX64_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErr64)
|
646
|
+
#endif
|
647
|
+
|
648
|
+
#ifdef UNITY_EXCLUDE_FLOAT
|
649
|
+
#define UNITY_TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
650
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
651
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
652
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
653
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
654
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
655
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
656
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
657
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
658
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
659
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrFloat)
|
660
|
+
#else
|
661
|
+
#define UNITY_TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual, line, message) UnityAssertFloatsWithin((_UF)(delta), (_UF)(expected), (_UF)(actual), (message), (UNITY_LINE_TYPE)line)
|
662
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT(expected, actual, line, message) UNITY_TEST_ASSERT_FLOAT_WITHIN((_UF)(expected) * (_UF)UNITY_FLOAT_PRECISION, (_UF)expected, (_UF)actual, (UNITY_LINE_TYPE)line, message)
|
663
|
+
#define UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualFloatArray((_UF*)(expected), (_UF*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line)
|
664
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_INF(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_INF)
|
665
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NEG_INF)
|
666
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NAN(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NAN)
|
667
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_DET)
|
668
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_INF)
|
669
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_NEG_INF)
|
670
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_NAN)
|
671
|
+
#define UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual, line, message) UnityAssertFloatSpecial((_UF)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_DET)
|
672
|
+
#endif
|
673
|
+
|
674
|
+
#ifdef UNITY_EXCLUDE_DOUBLE
|
675
|
+
#define UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
676
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected, actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
677
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
678
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
679
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
680
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
681
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
682
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
683
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
684
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
685
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, line, message) UNITY_TEST_FAIL((UNITY_LINE_TYPE)line, UnityStrErrDouble)
|
686
|
+
#else
|
687
|
+
#define UNITY_TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual, line, message) UnityAssertDoublesWithin((_UD)(delta), (_UD)(expected), (_UD)(actual), (message), (UNITY_LINE_TYPE)line)
|
688
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE(expected, actual, line, message) UNITY_TEST_ASSERT_DOUBLE_WITHIN((_UD)(expected) * (_UD)UNITY_DOUBLE_PRECISION, (_UD)expected, (_UD)actual, (UNITY_LINE_TYPE)line, message)
|
689
|
+
#define UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements, line, message) UnityAssertEqualDoubleArray((_UD*)(expected), (_UD*)(actual), (_UU32)(num_elements), (message), (UNITY_LINE_TYPE)line)
|
690
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_INF(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_INF)
|
691
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NEG_INF)
|
692
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NAN(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NAN)
|
693
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_DET)
|
694
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_INF)
|
695
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_NEG_INF)
|
696
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_NAN)
|
697
|
+
#define UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual, line, message) UnityAssertDoubleSpecial((_UD)(actual), (message), (UNITY_LINE_TYPE)line, UNITY_FLOAT_IS_NOT_DET)
|
698
|
+
#endif
|
699
|
+
|
700
|
+
//End of UNITY_INTERNALS_H
|
701
|
+
#endif
|