Skip to content
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 config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@
]
},
{
"slug": "bracket-push",
"slug": "matching-brackets",
"uuid": "677ca063-70fe-4cfc-8112-c5d78bd1ea44",
"core": false,
"unlocked_by": "kindergarten-garden",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module BracketPush
module MatchingBrackets

open System

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module BracketPush
module MatchingBrackets

let isPaired input = failwith "You need to implement this function."
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<Compile Include="BracketPush.fs" />
<Compile Include="BracketPushTest.fs" />
<Compile Include="MatchingBrackets.fs" />
<Compile Include="MatchingBracketsTest.fs" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// This file was auto-generated based on version 1.4.0 of the canonical data.
// This file was auto-generated based on version 2.0.0 of the canonical data.

module BracketPushTest
module MatchingBracketsTest

open FsUnit.Xunit
open Xunit

open BracketPush
open MatchingBrackets

[<Fact>]
let ``Paired square brackets`` () =
Expand Down Expand Up @@ -63,6 +63,10 @@ let ``Paired and wrong nested brackets`` () =
let ``Paired and incomplete brackets`` () =
isPaired "{}[" |> should equal false

[<Fact(Skip = "Remove to run test")>]
let ``Too many closing brackets`` () =
isPaired "[]]" |> should equal false

[<Fact(Skip = "Remove to run test")>]
let ``Math expression`` () =
isPaired "(((185 + 223.85) * 15) - 543)/2" |> should equal true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bracket Push
# Matching Brackets

Given a string containing brackets `[]`, braces `{}`, parentheses `()`,
or any combination thereof, verify that any and all pairs are matched
Expand Down
6 changes: 3 additions & 3 deletions generators/Generators.fs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ type Bowling() =
value
|> Option.ofNonErrorObject
|> Option.renderParenthesized

type BracketPush() =
inherit GeneratorExercise()

type Change() =
inherit GeneratorExercise()
Expand Down Expand Up @@ -792,6 +789,9 @@ type Markdown() =

override this.PropertiesWithIdentifier canonicalDataCase = this.Properties canonicalDataCase

type MatchingBrackets() =
inherit GeneratorExercise()

type Matrix() =
inherit GeneratorExercise()

Expand Down