Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
00dda3a
resistor-color-duo: add test case to ignore additional colors (#1569)
ErikSchierboom Aug 17, 2019
221a441
[Space Age] Put Earth in it's proper order
joshgoebel Aug 20, 2019
1c51bc0
Remove commas from seconds amount
joshgoebel Aug 20, 2019
ab56441
Merge pull request #1573 from yyyc514/patch-1
kotp Aug 20, 2019
8d22308
Add data structures to topic list
Aug 24, 2019
dda744d
Merge pull request #1574 from exercism/missing-topic
wolf99 Aug 24, 2019
ccbce72
Scrabble is a trademark name.
kotp Aug 26, 2019
51b8b30
Merge pull request #1575 from exercism/scrabble-proper-name
kotp Aug 27, 2019
1298f9b
Add testcase
DagmarTimmreck Aug 28, 2019
577ba69
Matrix: Add symmetric test cases for non-square matrices
DagmarTimmreck Aug 29, 2019
f3cb674
Merge pull request #1576 from DagmarTimmreck/master
kotp Aug 31, 2019
9891a29
matrix: fix whitespace issue (#1578)
yawpitch Sep 3, 2019
f8aaffb
leap: Add years that refute some unusual factors (#1581)
petertseng Sep 14, 2019
f928002
Add micro-blog exercise (#1509)
ccouzens Sep 21, 2019
3aa4c5d
paasio: Title as "PaaS I/O" instead of default "Paasio" (#1589)
petertseng Sep 26, 2019
b2b6b66
Fix broken link to website contributing document
sjwarner Oct 1, 2019
85876a0
topics: add 'pointers' in section 'data types'
tehsphinx Oct 2, 2019
81c1eaa
robot-name description: singular "robot"
cxw42 Oct 5, 2019
94f57e9
Merge pull request #1599 from cxw42/robot-name
yawpitch Oct 6, 2019
810ba9a
Merge pull request #1595 from tehsphinx/patch-1
yawpitch Oct 6, 2019
3623d97
Merge pull request #1593 from exercism/contributing-fix
yawpitch Oct 6, 2019
1a1052f
connect: Replaced rhombus with parallelogram
made-by-traxam Oct 6, 2019
dab442f
connect: Replaced rhombus with parallelogram
yawpitch Oct 6, 2019
4531f54
minesweeper: remove border (#1602)
yawpitch Oct 14, 2019
c41a2f0
list-ops: change order in append test case description (#1611)
wolf99 Oct 19, 2019
bd68e1b
isbin-verifier: add EOF newline (#1616)
Teo-ShaoWei Nov 5, 2019
2ee5596
#1623 `grade-school` canonical data does not correspond to the exerci…
eparovyshnaya Dec 9, 2019
f60c43b
fix: Remove trailing spaces
ffflorian Dec 22, 2019
63bb34c
Merge pull request #1627 from ffflorian/fix/trailing-spaces
rpottsoh Jan 3, 2020
1904e91
Bob: Cleans up language on a couple of test cases
rpottsoh Jan 16, 2020
ff4a71b
Merge pull request #1631 from rpottsoh/UpdateBob
rpottsoh Jan 17, 2020
42b9d45
Bob: Replaces DMV with dentist (#1632)
rpottsoh Jan 17, 2020
498d10f
luhn: check a number with an even remainder (#1635)
pranasziaukas Feb 9, 2020
b2962bf
[two-bucket] Make valid moves clearer (#1644)
iHiD Mar 3, 2020
9bfee5f
scale-generator: fix name of augmented interval (#1643)
r4f4 Mar 3, 2020
5b65046
Add requirements of the exercise (#1645)
zuzia-kru Mar 9, 2020
5f14f2e
two-fer: Update description.md (#1583)
joshgoebel Mar 17, 2020
18971b4
Update Simple Linked List metadata (#1648)
treble37 Apr 15, 2020
b9477ae
Fix metadata source_url for simple-linked-list exercise (#1649)
tejasbubane Apr 18, 2020
9664fc7
Fix apophenia error slowing student progress (#1650)
workingjubilee Apr 23, 2020
89b3652
Update description.md (#1653)
chivalry Apr 30, 2020
ea9db9b
two tests to check case insensitive behavior (#1658)
Wikunia May 25, 2020
e2945e9
Revert "two tests to check case insensitive behavior (#1658)" (#1659)
iHiD May 25, 2020
c6cd8f2
Palindrome Products: refine the problem (#1662)
DmitrySamoylov Jun 2, 2020
3f1d2a2
robot-name: remove dead link (#1663)
cmcaine Jun 12, 2020
cea02af
Add uuid field to all test cases (#1676)
ErikSchierboom Oct 1, 2020
42dd0ce
Remove version (#1678)
ErikSchierboom Oct 2, 2020
5eb80f4
Replace optional key with scenarios (#1677)
ErikSchierboom Oct 6, 2020
d100305
Add GH Actions CI workflow (#1680)
cmccandless Oct 7, 2020
5c7d015
Add description of tests.toml (#1682)
ErikSchierboom Oct 9, 2020
126568d
Add scenarios to example and describe purpose (#1683)
wolf99 Oct 13, 2020
77cb4b0
CI: Clean up workflow and clarify what "JS tests" are (#1697)
SaschaMann Oct 13, 2020
965cc22
CI: Add codeowners (#1699)
SaschaMann Oct 13, 2020
af44df1
Add reimplements to schema (#1703)
SaschaMann Oct 13, 2020
2ea5d7c
list-ops: add append case (#1612)
wolf99 Oct 14, 2020
c693bbc
resistor-color/resistor-color-duo: extend exercise explanation (parti…
artamonovkirill Oct 14, 2020
ea11935
CI: Check that UUIDs are unique (#1700)
SaschaMann Oct 14, 2020
4b0364b
diffie-hellman: Reword 'in range 1 .. p' (#1688)
ee7 Oct 15, 2020
a757698
run-length-encoding: 'lower case' -> 'lowercase' (#1708)
ee7 Oct 15, 2020
8df6cb2
isbn-verifier: 'isbn number' -> 'isbn' (#1690)
ee7 Oct 15, 2020
fcbc251
perfect-numbers: 'natural number' -> 'positive integer' (#1691)
ee7 Oct 15, 2020
426b93d
grains: Be more verbose in test-level descriptions (#1707)
ee7 Oct 15, 2020
c0b711f
Add Style Guide (#1713)
iHiD Oct 15, 2020
70b4b4b
CI: Add check that reimplemented-values are valid UUIDs (#1702)
SaschaMann Oct 15, 2020
f8a2369
CI: Use jq instead of grep/sed (#1710)
SaschaMann Oct 16, 2020
b21c1b3
Add esoteric example. (#1717)
iHiD Oct 16, 2020
ffd3173
Square-Root: Add new exercise (#1582)
wolf99 Oct 17, 2020
6530a9c
CI: Add workflow_dispatch as manual trigger (#1711)
SaschaMann Oct 17, 2020
df9a6bb
security: CVE-2020-7598 (#1706)
artamonovkirill Oct 17, 2020
a683c8c
Add abbreviations and restructure slightly (#1718)
iHiD Oct 19, 2020
381c30e
Style: Fix whitespace issues (#1720)
ee7 Oct 19, 2020
df83bc4
grade-school: Fix typo in test description (#1689)
ee7 Oct 20, 2020
4a961af
queen-attack: Fix typo in test description (#1692)
ee7 Oct 20, 2020
53df31f
Update nucleotide-count description (#1719)
cmcaine Oct 20, 2020
c385d52
CI: Add /rebase command (#1698)
SaschaMann Oct 20, 2020
efda1e3
Add workflow recommendations and templates (#1722)
SleeplessByte Oct 21, 2020
f95ceef
CI: Ensure immutability of test cases (#1712)
SaschaMann Oct 21, 2020
b889bf8
rational-numbers: Make formulas more readable (#1655)
SaschaMann Oct 28, 2020
a2c75d2
leap: fix typo (#1726)
SaschaMann Oct 29, 2020
4d57825
rational-numbers: Remove redundant factor (#1727)
SaschaMann Oct 29, 2020
4482b50
two-bucket: test inability to reach the goal (#1580)
petertseng Oct 31, 2020
d6f81fe
[CI] Bump rebase action to fix CVE-2020-15228 (#1731)
SaschaMann Nov 3, 2020
30011fe
[CI] Only run immutability check on PRs (#1730)
SaschaMann Nov 4, 2020
1a7290b
Remove linkless words (#1733)
OMEGA-Y Nov 16, 2020
e54e5c3
build(deps): bump ini from 1.3.5 to 1.3.7 (#1734)
dependabot[bot] Dec 11, 2020
03529d0
Grade school exercise: A student cannot simultaneously be in two grad…
pedrorolo Dec 11, 2020
de45446
Add configlet (#1737)
SleeplessByte Dec 18, 2020
448e975
change: add simplest test case (#1739)
SleeplessByte Dec 22, 2020
a88c544
prime-factors: add further variations (#1755)
SleeplessByte Dec 22, 2020
b40f306
[transpose] added 'jagged triangle' test (#1748)
peerreynders Dec 23, 2020
fcc6028
kindergarten-garden: completionist (#1744)
SleeplessByte Dec 23, 2020
bb38e15
list-ops: reimplement ambiguous tests (#1746)
SleeplessByte Dec 24, 2020
eb6c32b
Hamming: remove tests that don't make sense per 1761 (#1762)
wolf99 Jan 2, 2021
9d19516
grade-school: Change a UUID to be version 4 (#1760)
ee7 Jan 5, 2021
09b65ca
canonical-schema: Fix UUID regex pattern (#1759)
ee7 Jan 5, 2021
ad4e6f6
[CI] Verify that scenarios are defined in schema
ErikSchierboom Jan 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# CI
.github/**/* @exercism/maintainers-admin
Original file line number Diff line number Diff line change
@@ -0,0 +1,369 @@
{
"exercise": "complex-numbers",
"comments": [
" The canonical data assumes mathematically correct real ",
" numbers. The testsuites should consider rounding errors ",
" instead of testing for exact values for any non-integer ",
" tests. ",
" Complex numbers z are represented as arrays [x, y] so ",
" that z = x + i * y. ",
" Pi is represented as a string \"pi\", euler's number is ",
" represented as \"e\". "
],
"cases": [
{
"description": "Real part",
"cases": [
{
"uuid": "9f98e133-eb7f-45b0-9676-cce001cd6f7a",
"description": "Real part of a purely real number",
"property": "real",
"input": {
"z": [1, 0]
},
"expected": 1
},
{
"uuid": "07988e20-f287-4bb7-90cf-b32c4bffe0f3",
"description": "Real part of a purely imaginary number",
"property": "real",
"input": {
"z": [0, 1]
},
"expected": 0
},
{
"uuid": "4a370e86-939e-43de-a895-a00ca32da60a",
"description": "Real part of a number with real and imaginary part",
"scenarios": ["a", "b"],
"property": "real",
"input": {
"z": [1, 2]
},
"expected": 1
}
]
},
{
"description": "Imaginary part",
"cases": [
{
"uuid": "9b3fddef-4c12-4a99-b8f8-e3a42c7ccef6",
"description": "Imaginary part of a purely real number",
"property": "imaginary",
"input": {
"z": [1, 0]
},
"expected": 0
},
{
"uuid": "a8dafedd-535a-4ed3-8a39-fda103a2b01e",
"description": "Imaginary part of a purely imaginary number",
"property": "imaginary",
"input": {
"z": [0, 1]
},
"expected": 1
},
{
"uuid": "0f998f19-69ee-4c64-80ef-01b086feab80",
"description": "Imaginary part of a number with real and imaginary part",
"property": "imaginary",
"input": {
"z": [1, 2]
},
"expected": 2
}
]
},
{
"uuid": "a39b7fd6-6527-492f-8c34-609d2c913879",
"description": "Imaginary unit",
"property": "mul",
"input": {
"z1": [0, 1],
"z2": [0, 1]
},
"expected": [-1, 0]
},
{
"description": "Arithmetic",
"cases": [
{
"description": "Addition",
"cases": [
{
"uuid": "9a2c8de9-f068-4f6f-b41c-82232cc6c33e",
"description": "Add purely real numbers",
"property": "add",
"input": {
"z1": [1, 0],
"z2": [2, 0]
},
"expected": [3, 0]
},
{
"uuid": "657c55e1-b14b-4ba7-bd5c-19db22b7d659",
"description": "Add purely imaginary numbers",
"property": "add",
"input": {
"z1": [0, 1],
"z2": [0, 2]
},
"expected": [0, 3]
},
{
"uuid": "4e1395f5-572b-4ce8-bfa9-9a63056888da",
"description": "Add numbers with real and imaginary part",
"property": "add",
"input": {
"z1": [1, 2],
"z2": [3, 4]
},
"expected": [4, 6]
}
]
},
{
"description": "Subtraction",
"cases": [
{
"uuid": "1155dc45-e4f7-44b8-af34-a91aa431475d",
"description": "Subtract purely real numbers",
"property": "sub",
"input": {
"z1": [1, 0],
"z2": [2, 0]
},
"expected": [-1, 0]
},
{
"uuid": "f95e9da8-acd5-4da4-ac7c-c861b02f774b",
"description": "Subtract purely imaginary numbers",
"property": "sub",
"input": {
"z1": [0, 1],
"z2": [0, 2]
},
"expected": [0, -1]
},
{
"uuid": "f876feb1-f9d1-4d34-b067-b599a8746400",
"description": "Subtract numbers with real and imaginary part",
"property": "sub",
"input": {
"z1": [1, 2],
"z2": [3, 4]
},
"expected": [-2, -2]
}
]
},
{
"description": "Multiplication",
"cases": [
{
"uuid": "8a0366c0-9e16-431f-9fd7-40ac46ff4ec4",
"description": "Multiply purely real numbers",
"property": "mul",
"input": {
"z1": [1, 0],
"z2": [2, 0]
},
"expected": [2, 0]
},
{
"uuid": "e560ed2b-0b80-4b4f-90f2-63cefc911aaf",
"description": "Multiply purely imaginary numbers",
"property": "mul",
"input": {
"z1": [0, 1],
"z2": [0, 2]
},
"expected": [-2, 0]
},
{
"uuid": "4d1d10f0-f8d4-48a0-b1d0-f284ada567e6",
"description": "Multiply numbers with real and imaginary part",
"property": "mul",
"input": {
"z1": [1, 2],
"z2": [3, 4]
},
"expected": [-5, 10]
}
]
},
{
"description": "Division",
"cases": [
{
"uuid": "b0571ddb-9045-412b-9c15-cd1d816d36c1",
"description": "Divide purely real numbers",
"property": "div",
"input": {
"z1": [1, 0],
"z2": [2, 0]
},
"expected": [0.5, 0]
},
{
"uuid": "5bb4c7e4-9934-4237-93cc-5780764fdbdd",
"description": "Divide purely imaginary numbers",
"property": "div",
"input": {
"z1": [0, 1],
"z2": [0, 2]
},
"expected": [0.5, 0]
},
{
"uuid": "c4e7fef5-64ac-4537-91c2-c6529707701f",
"description": "Divide numbers with real and imaginary part",
"property": "div",
"input": {
"z1": [1, 2],
"z2": [3, 4]
},
"expected": [0.44, 0.08]
}
]
}
]
},
{
"description": "Absolute value",
"cases": [
{
"uuid": "c56a7332-aad2-4437-83a0-b3580ecee843",
"description": "Absolute value of a positive purely real number",
"property": "abs",
"input": {
"z": [5, 0]
},
"expected": 5
},
{
"uuid": "cf88d7d3-ee74-4f4e-8a88-a1b0090ecb0c",
"description": "Absolute value of a negative purely real number",
"property": "abs",
"input": {
"z": [-5, 0]
},
"expected": 5
},
{
"uuid": "bbe26568-86c1-4bb4-ba7a-da5697e2b994",
"description": "Absolute value of a purely imaginary number with positive imaginary part",
"property": "abs",
"input": {
"z": [0, 5]
},
"expected": 5
},
{
"uuid": "3b48233d-468e-4276-9f59-70f4ca1f26f3",
"description": "Absolute value of a purely imaginary number with negative imaginary part",
"property": "abs",
"input": {
"z": [0, -5]
},
"expected": 5
},
{
"uuid": "fe400a9f-aa22-4b49-af92-51e0f5a2a6d3",
"description": "Absolute value of a number with real and imaginary part",
"property": "abs",
"input": {
"z": [3, 4]
},
"expected": 5
}
]
},
{
"description": "Complex conjugate",
"cases": [
{
"uuid": "fb2d0792-e55a-4484-9443-df1eddfc84a2",
"description": "Conjugate a purely real number",
"property": "conjugate",
"input": {
"z": [5, 0]
},
"expected": [5, 0]
},
{
"uuid": "e37fe7ac-a968-4694-a460-66cb605f8691",
"description": "Conjugate a purely imaginary number",
"property": "conjugate",
"input": {
"z": [0, 5]
},
"expected": [0, -5]
},
{
"uuid": "f7704498-d0be-4192-aaf5-a1f3a7f43e68",
"description": "Conjugate a number with real and imaginary part",
"property": "conjugate",
"input": {
"z": [1, 1]
},
"expected": [1, -1]
}
]
},
{
"description": "Complex exponential function",
"comments": [
" Defining the exponential function can be optional. ",
" If the language used does not have sine and cosine ",
" functions in the standard library, this will be ",
" significantly more difficult than the rest of the exer- ",
" cise and should probably not be part of the problem. ",
" The recommended implementation uses Euler's formula ",
" exp(ix) = cos(x) + i * sin(x). This is not an ideal sol- ",
" ution but works for the purpose of teaching complex ",
" numbers. "
],
"cases": [
{
"uuid": "6d96d4c6-2edb-445b-94a2-7de6d4caaf60",
"description": "Euler's identity/formula",
"property": "exp",
"input": {
"z": [0, "pi"]
},
"expected": [-1, 0]
},
{
"uuid": "2d2c05a0-4038-4427-a24d-72f6624aa45f",
"description": "Exponential of 0",
"property": "exp",
"input": {
"z": [0, 0]
},
"expected": [1, 0]
},
{
"uuid": "ed87f1bd-b187-45d6-8ece-7e331232c809",
"description": "Exponential of a purely real number",
"property": "exp",
"input": {
"z": [1, 0]
},
"expected": ["e", 0]
},
{
"uuid": "08eedacc-5a95-44fc-8789-1547b27a8702",
"description": "Exponential of a number with real and imaginary part",
"property": "exp",
"input": {
"z": ["ln(2)", "pi"]
},
"expected": [-2, 0]
}
]
}
]
}
Loading