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

Suggestion: Support infix #371

Open
bn-d opened this issue Feb 19, 2023 · 0 comments
Open

Suggestion: Support infix #371

bn-d opened this issue Feb 19, 2023 · 0 comments

Comments

@bn-d
Copy link

bn-d commented Feb 19, 2023

It will be convenient if the infix is added

i.e

let (>>:) name test = Alcotest.test_case name `Quick test
let (>::) name test = Alcotest.test_case name `Slow test

let () =
  Alcotest.run "Utils"
    [
      ( "string-case",
        [
          "Lower case" >>: test_lowercase;
          "Capitalization" >>: test_capitalize;
        ] );
      ( "string-concat",
        [ "String mashing" >>: test_str_concat ] );
      ( "list-concat",
        [ "List mashing" >:: test_list_concat ] );
    ]
@bn-d bn-d changed the title Support infix Suggestion: Support infix Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant