e7f729c61b 
								
							 
						 
						
							
							
								
								Define HighlightJS definition for Aiken.  
							
							
							
						 
						
							2022-12-17 01:02:21 +01:00  
				
					
						
							
							
								 
						
							
								e1065e892a 
								
							 
						 
						
							
							
								
								Support module constants in docs.  
							
							
							
						 
						
							2022-12-17 01:02:21 +01:00  
				
					
						
							
							
								 
						
							
								ac0d180c5c 
								
							 
						 
						
							
							
								
								Apply suggestions from clippy.  
							
							
							
						 
						
							2022-12-17 01:02:21 +01:00  
				
					
						
							
							
								 
						
							
								873bd85d8b 
								
							 
						 
						
							
							
								
								Implement modules' extra, to get function & module comments in docs.  
							
							
							
						 
						
							2022-12-17 01:02:21 +01:00  
				
					
						
							
							
								 
						
							
								536c9457b3 
								
							 
						 
						
							
							
								
								Refactor project source parsing  
							
							... 
							
							
							
							There was already a 'parse_sources' function, and 'parse' was actually more about typechecking than parsing. 
							
						 
						
							2022-12-17 01:02:21 +01:00  
				
					
						
							
							
								 
						
							
								b323c95241 
								
							 
						 
						
							
							
								
								Fix type-parameter pretty printing (use chevrons)  
							
							
							
						 
						
							2022-12-17 01:02:20 +01:00  
				
					
						
							
							
								 
						
							
								d2c6d27545 
								
							 
						 
						
							
							
								
								Support data-types in documentation.  
							
							
							
						 
						
							2022-12-17 01:02:20 +01:00  
				
					
						
							
							
								 
						
							
								1f3f769b53 
								
							 
						 
						
							
							
								
								Add command 'docs' for generating project documentation.  
							
							
							
						 
						
							2022-12-16 18:34:05 +01:00  
				
					
						
							
							
								 
						
							
								6da53fd875 
								
							 
						 
						
							
							
								
								Add a 'docs' method to projects, using the newly introduced docs::generate_all  
							
							
							
						 
						
							2022-12-16 18:33:36 +01:00  
				
					
						
							
							
								 
						
							
								16b0a9fbe4 
								
							 
						 
						
							
							
								
								Introduce 'docs' for generating documentation for aiken libraries.  
							
							
							
						 
						
							2022-12-16 18:33:04 +01:00  
				
					
						
							
							
								 
						
							
								71e71fffe8 
								
							 
						 
						
							
							
								
								Define 'is_library' for 'CheckedModule'  
							
							... 
							
							
							
							So that we can separate libraries from executable modules if necessary. 
							
						 
						
							2022-12-16 15:33:27 +01:00  
				
					
						
							
							
								 
						
							
								1edbf57943 
								
							 
						 
						
							
							
								
								fix: this badge no longer exists  
							
							
							
						 
						
							2022-12-15 18:26:28 -05:00  
				
					
						
							
							
								 
						
							
								775e90d782 
								
							 
						 
						
							
							
								
								chore: remove unnecessary Option wrapper on type  
							
							
							
						 
						
							2022-12-15 18:22:31 -05:00  
				
					
						
							
							
								 
						
							
								325a7b7b45 
								
							 
						 
						
							
							
								
								fix: correct V1 to_plutus_data() for txout with no datum hash  
							
							
							
						 
						
							2022-12-15 18:22:31 -05:00  
				
					
						
							
							
								 
						
							
								34d76bc280 
								
							 
						 
						
							
							
								
								chore: retire mdbook  
							
							
							
						 
						
							2022-12-15 14:17:36 -05:00  
				
					
						
							
							
								 
						
							
								cbe7ad65f7 
								
							 
						 
						
							
							
								
								chore: update link to docs in the readme  
							
							
							
						 
						
							2022-12-15 14:07:21 -05:00  
				
					
						
							
							
								 
						
							
								0188003323 
								
							 
						 
						
							
							
								
								refactor: move helper option builder to lang  
							
							
							
						 
						
							2022-12-15 13:28:30 -05:00  
				
					
						
							
							
								 
						
							
								42f8a694f4 
								
							 
						 
						
							
							
								
								tests: missing token broke a test  
							
							
							
						 
						
							2022-12-15 11:12:35 -05:00  
				
					
						
							
							
								 
						
							
								53bc9aa56f 
								
							 
						 
						
							
							
								
								fix: properly capture empty lines  
							
							
							
						 
						
							2022-12-15 11:12:35 -05:00  
				
					
						
							
							
								 
						
							
								d9d1310c6d 
								
							 
						 
						
							
							
								
								Merge pull request  #166  from aiken-lang/some-interesting-test-cases  
							
							... 
							
							
							
							Include generics to get test cases working 
							
						 
						
							2022-12-15 02:07:05 +01:00  
				
					
						
							
							
								 
						
							
								5024bd884c 
								
							 
						 
						
							
							
								
								Remove debug line for pretty-printing test, and add '--debug' flag to 'check instead.  
							
							
							
						 
						
							2022-12-15 02:02:10 +01:00  
				
					
						
							
							
								 
						
							
								e5972640d2 
								
							 
						 
						
							
							
								
								Remove 'eval' command.  
							
							... 
							
							
							
							Was introduced as a work-around to get some debugging info out of scripts, but tests do now provide the same capability with a better output and, do so automatically. 
							
						 
						
							2022-12-14 22:14:35 +01:00  
				
					
						
							
							
								 
						
							
								978a6c6981 
								
							 
						 
						
							
							
								
								Collect and display evaluation hints on test failures.  
							
							
							
						 
						
							2022-12-14 22:00:56 +01:00  
				
					
						
							
							
								 
						
							
								7b22b63ad8 
								
							 
						 
						
							
							
								
								move 'EvalInfo' to project::script & define a new 'EvalHint'  
							
							
							
						 
						
							2022-12-14 22:00:09 +01:00  
				
					
						
							
							
								 
						
							
								921e7abbb6 
								
							 
						 
						
							
							
								
								Move pretty-printing utilities to project::pretty  
							
							
							
						 
						
							2022-12-14 21:59:09 +01:00  
				
					
						
							
							
								 
						
							
								6343fa7105 
								
							 
						 
						
							
							
								
								Change generated assets file extensions  
							
							
							
						 
						
							2022-12-14 12:48:29 -05:00  
				
					
						
							
							
								 
						
							
								87546e0abd 
								
							 
						 
						
							
							
								
								Return non-zero exit code on test failure  
							
							... 
							
							
							
							And integrated test results with miette report. 
							
						 
						
							2022-12-14 18:44:31 +01:00  
				
					
						
							
							
								 
						
							
								c77b7c293b 
								
							 
						 
						
							
							
								
								Fix errors on aiken build  
							
							... 
							
							
							
							- Update generics syntax
- Add required args to default validator function
This allows running a successful aiken build from
files generated by aiken new. 
							
						 
						
							2022-12-14 12:03:30 -05:00  
				
					
						
							
							
								 
						
							
								3a9cc668fc 
								
							 
						 
						
							
							
								
								Use bright_black (i.e. grey) for box drawing.  
							
							
							
						 
						
							2022-12-14 17:45:16 +01:00  
				
					
						
							
							
								 
						
							
								2d6fc8bd54 
								
							 
						 
						
							
							
								
								Group test results by module.  
							
							
							
						 
						
							2022-12-14 17:34:24 +01:00  
				
					
						
							
							
								 
						
							
								bd956efd36 
								
							 
						 
						
							
							
								
								Rework acceptance test 014 to smaller reproducible scenario  
							
							
							
						 
						
							2022-12-14 10:20:43 +01:00  
				
					
						
							
							
								 
						
							
								7c54283e69 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (015)  
							
							... 
							
							
							
							```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:2388:21
    ╰─▶ not yet implemented
  ``` 
							
						 
						
							2022-12-14 10:20:43 +01:00  
				
					
						
							
							
								 
						
							
								3c664b9651 
								
							 
						 
						
							
							
								
								test 1-9 passing  
							
							
							
						 
						
							2022-12-14 09:45:26 +01:00  
				
					
						
							
							
								 
						
							
								b71315ba2f 
								
							 
						 
						
							
							
								
								chore: trying to fix test 5  
							
							
							
						 
						
							2022-12-14 09:45:26 +01:00  
				
					
						
							
							
								 
						
							
								6635a918b5 
								
							 
						 
						
							
							
								
								clean up minor warnings  
							
							
							
						 
						
							2022-12-14 09:45:26 +01:00  
				
					
						
							
							
								 
						
							
								b6962ba9d3 
								
							 
						 
						
							
							
								
								Add 'eval' command to evaluate target aiken function  
							
							... 
							
							
							
							Pretty useful for debbugging. Though, on second-thoughts, this is
  something we may want to review later and maybe have that done by
  default for tests.
  At the moment, we expects tests to unify to `bool`, and treat `false`
  values as failing tests. Yet, on failures, this gives little
  information about what's wrong with the test.
  It'd be nice to either have better way to assert in tests, or, to
  simply accept non-bool tests, and show whatever the test evaluates
  to as a debug output. 
							
						 
						
							2022-12-14 09:45:26 +01:00  
				
					
						
							
							
								 
						
							
								95df5f9137 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (014)  
							
							
							
						 
						
							2022-12-14 09:45:26 +01:00  
				
					
						
							
							
								 
						
							
								bc7c236b3b 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (013)  
							
							... 
							
							
							
							```
  ERROR:
  The provided Plutus code called 'error'
  ``` 
							
						 
						
							2022-12-14 09:45:25 +01:00  
				
					
						
							
							
								 
						
							
								9c902cdf89 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (012)  
							
							... 
							
							
							
							```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:3413:34
    ╰─▶ internal error: entered unreachable code: Var {
            scope: [
                0,
                1,
                3,
                24,
                25,
                29,
                32,
            ],
            constructor: ValueConstructor {
                public: false,
                variant: LocalVariable {
                    location: 46..62,
                },
                tipo: Fn {
                    args: [
                        Var {
                            tipo: RefCell {
                                value: Link {
                                    tipo: App {
                                        public: true,
                                        module: "",
                                        name: "Int",
                                        args: [],
                                    },
                                },
                            },
                        },
                    ],
                    ret: App {
                        public: true,
                        module: "",
                        name: "Bool",
                        args: [],
                    },
                },
            },
            name: "f",
            variant_name: "",
        }
  ``` 
							
						 
						
							2022-12-14 09:45:25 +01:00  
				
					
						
							
							
								 
						
							
								f53caff538 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (011)  
							
							... 
							
							
							
							```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:4022:40
    ╰─▶ called `Option::unwrap()` on a `None` value
  ``` 
							
						 
						
							2022-12-14 09:45:25 +01:00  
				
					
						
							
							
								 
						
							
								11c793dd2a 
								
							 
						 
						
							
							
								
								feat(Type): add is_option method  
							
							
							
						 
						
							2022-12-14 09:45:25 +01:00  
				
					
						
							
							
								 
						
							
								8393d8555c 
								
							 
						 
						
							
							
								
								fill constants to data so now test 006 passes  
							
							
							
						 
						
							2022-12-14 09:45:25 +01:00  
				
					
						
							
							
								 
						
							
								dc5ae296db 
								
							 
						 
						
							
							
								
								implement anonymous functions, more tests pass now  
							
							
							
						 
						
							2022-12-14 09:45:25 +01:00  
				
					
						
							
							
								 
						
							
								299cd1ac24 
								
							 
						 
						
							
							
								
								fix: tuples  
							
							
							
						 
						
							2022-12-14 09:45:25 +01:00  
				
					
						
							
							
								 
						
							
								37def91fc5 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (010)  
							
							... 
							
							
							
							```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:688:33
    ╰─▶ called `Option::unwrap()` on a `None` value
    help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
  ``` 
							
						 
						
							2022-12-14 09:45:24 +01:00  
				
					
						
							
							
								 
						
							
								4217fd06b5 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (009)  
							
							... 
							
							
							
							Note: the problem is only present when importing a builtin explicitly.
  When using a qualified import, it compiles fine.
  ```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:3264:35
    ╰─▶ called `Option::unwrap()` on a `None` value
    help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
  ``` 
							
						 
						
							2022-12-14 09:45:24 +01:00  
				
					
						
							
							
								 
						
							
								adf34e9dc6 
								
							 
						 
						
							
							
								
								Add new acceptance test scenario (008)  
							
							... 
							
							
							
							```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:530:41
    ╰─▶ not yet implemented
    help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
  ``` 
							
						 
						
							2022-12-14 09:45:24 +01:00  
				
					
						
							
							
								 
						
							
								022fc36dd2 
								
							 
						 
						
							
							
								
								Add new (failing) acceptance test (007)  
							
							... 
							
							
							
							```
  Error: aiken::check
    × Checking
    ╰─▶ Not a function
     ╭─[./007/lib/test.ak:4:1]
   4 │     [(a, b), ..rest] -> {
   5 │       let (a_tail, b_tail) = unzip(rest)
     ·                                   ──────
   6 │       ([a, ..a_tail], [b, ..b_tail])
     ╰────
  ``` 
							
						 
						
							2022-12-14 09:45:24 +01:00  
				
					
						
							
							
								 
						
							
								a62fb1905e 
								
							 
						 
						
							
							
								
								rename examples/tests/{a,b,c,d,e,f} into examples/acceptance_tests/00{1,2,3,4,5,6}  
							
							... 
							
							
							
							Also added a little Makefile to run them all in one go. 
							
						 
						
							2022-12-14 09:45:24 +01:00  
				
					
						
							
							
								 
						
							
								b294063097 
								
							 
						 
						
							
							
								
								Add another acceptance test (f)  
							
							... 
							
							
							
							```
  Error:
    × Main thread panicked.
    ├─▶ at crates/lang/src/uplc.rs:4043:46
    ╰─▶ not yet implemented
    help: set the `RUST_BACKTRACE=1` environment variable to display a backtrace.
  ``` 
							
						 
						
							2022-12-14 09:45:24 +01:00