-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
diamond exercise fails to build, while it build fine locally and all tests pass #1022
Comments
This is a really weird issue as I can't reproduce it locally (using the test runner). |
module SimpleLinkedList
type LinkedList<'a> =
| Empty
| List of current : 'a * next : LinkedList<'a>
let nil = Empty
let create x n = List(x, n)
let isNil x = x = nil
let next x = match x with List(_,n) -> n | Empty -> x
let datum x = match x with List(x,_) -> x | Empty -> failwith "The list is empty"
let toList x =
let rec build x list =
match x with
| Empty -> list
| List(cur, next) ->
List.append list [cur] |> build next
build x []
let fromList xs =
let rec build list acc =
match list with
| [] -> acc
| head :: tail -> create head acc |> build tail
build (List.rev xs) nil
let reverse x =
let rec build x rev =
match x with
| Empty -> rev
| List(cur, next) ->
create cur rev
|> build next
build x nil @ErikSchierboom Am I cursed? |
That seems unlikely. I'll look into it |
Both problems are due to the test files using xUnit attributes that are not |
See #1029 (comment) for the discussion. |
Looks like it is fixed |
Given:
When I submit code
Then it fails with not informative error:
The text was updated successfully, but these errors were encountered: