Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to 2.0 #85

Merged
merged 5 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
ci:
runs-on: ubuntu-22.04
container:
image: chapel/chapel
image: chapel/chapel:2.0.0

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/allergies/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="allergies"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/anagram/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="anagram"
version="0.1.0"
chplVersion="1.33.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/bob/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="bob"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/circular-buffer/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="circular-buffer"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/collatz-conjecture/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="collatz-conjecture"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/darts/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="darts"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/diamond/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="diamond"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/difference-of-squares/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[brick]
name="difference-of-squares"
version="0.1.0"
chplVersion="1.33.0"
chplVersion="2.0.0"
type="application"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/dominoes/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="dominoes"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/forth/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="forth"
version="0.1.0"
chplVersion="1.33.0"
chplVersion="2.0.0"
type="application"
4 changes: 2 additions & 2 deletions exercises/practice/gigasecond/.meta/reference.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ module Gigasecond {
// implement reference solution
use Time;

const gigasecond = new timedelta(seconds=1000000000);
const gigasecond = new timeDelta(seconds=1000000000);

proc addGigasecond(moment: datetime) {
proc addGigasecond(moment: dateTime) {
return moment + gigasecond;
}
}
2 changes: 1 addition & 1 deletion exercises/practice/gigasecond/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="gigasecond"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
8 changes: 4 additions & 4 deletions exercises/practice/gigasecond/test/tests.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ use Time;
use Gigasecond;

proc testFullTimeSpecified(test : borrowed Test) throws {
var input = new datetime(2015, 01, 24, hour=22, minute=00, second=00),
expected = new datetime(2046, 10, 02, hour=23, minute=46, second=40);
var input = new dateTime(2015, 01, 24, hour=22, minute=00, second=00),
expected = new dateTime(2046, 10, 02, hour=23, minute=46, second=40);
test.assertEqual(addGigasecond(input), expected);
}

proc testFullTimeWithDayRollOver(test : borrowed Test) throws {
var input = new datetime(2015, 01, 24, hour=23, minute=59, second=59),
expected = new datetime(2046, 10, 03, hour=01, minute=46, second=39);
var input = new dateTime(2015, 01, 24, hour=23, minute=59, second=59),
expected = new dateTime(2046, 10, 03, hour=01, minute=46, second=39);
test.assertEqual(addGigasecond(input), expected);
}

Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/hello-world/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="hello-world"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/high-scores/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="high-scores"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/isogram/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="isogram"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/leap/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="leap"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/meetup/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="meetup"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/nucleotide-count/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="nucleotide-count"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/pangram/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="pangram"
version="0.1.0"
chplVersion="1.33.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/raindrops/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="raindrops"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/resistor-color/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="resistor-color"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/rna-transcription/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="rna-transcription"
version="0.1.0"
chplVersion="1.33.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/roman-numerals/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[brick]
name="roman-numerals"
version="0.1.0"
chplVersion="1.33.0"
chplVersion="2.0.0"
type="application"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion exercises/practice/series/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="series"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/two-fer/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="two-fer"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
2 changes: 1 addition & 1 deletion exercises/practice/yacht/Mason.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[brick]
name="yacht"
version="0.1.0"
chplVersion="1.28.0"
chplVersion="2.0.0"
type="application"
Loading