mlabs-haskell / mlabs-haskell/lambda-buffers

Compiler: Testing tasks

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

compiler testing
Dominant language
Haskell
Stars
32
Forks
1
PR merge metrics
No merged PRs in 30d

Description

TODO:

  • Benign mutation that shuffles Constructors in a Sum - easy
  • Benign mutation that shuffles Fields in a Record - easy
  • Benign mutation that shuffles Tys in a NTuple - easy
  • Benign mutation that shuffles TyArgs in a TyAbs - difficult (requires updating call sites)
  • Corrupting mutation causing a NamingError
  • Corrupting mutation causing a ProtoParseError
  • Corrupting mutation causing a KindCheckError

Check out Mutations in https://github.com/mlabs-haskell/lambda-buffers/blob/134ff00445aac6c09bfe63ecea433c3c708c3753/lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Mutation.hs

And how to install them in https://github.com/mlabs-haskell/lambda-buffers/blob/134ff00445aac6c09bfe63ecea433c3c708c3753/lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler.hs#L50

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Mutations definitions in lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler/Mutation.hs and the installation code near line 50 of lambda-buffers-compiler/test/Test/LambdaBuffers/Compiler.hs. Implement the unchecked benign and corrupting mutation tests from the issue, then run the compiler test suite to verify each listed case is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
compilers, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.