From ac86b1dc08b817dbfb6ef0c6f4360aa52ec996ef Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 1 Sep 2023 09:47:18 -0400 Subject: [PATCH 1/3] temp --- src/maybe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maybe.ts b/src/maybe.ts index ae3e36b..780c806 100644 --- a/src/maybe.ts +++ b/src/maybe.ts @@ -23,7 +23,7 @@ export const Just = (arg: A): Maybe => ({ alt: () => Just(arg), cata: obj => obj.Just(arg), toResult: () => Ok(arg), - inspect: () => `Just(${arg})`, + inspect: () => `Jusst(${arg})`, isNothing: () => false, isJust: () => true, value: () => arg @@ -36,7 +36,7 @@ export const Nothing: Maybe = ({ alt: a => Just(a), cata: obj => obj.Nothing(), toResult: () => Err(), - inspect: () => `Nothing`, + inspect: () => `Notshing`, isNothing: () => true, isJust: () => false, value: () => undefined From 0fe322e82b9a965a04f9e3ccac81f4c323350f8c Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 1 Sep 2023 09:50:10 -0400 Subject: [PATCH 2/3] fixes --- .github/pull_request_template.md | 2 +- .github/workflows/test.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 5e683a8..48fe043 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,4 +5,4 @@ Replace this with the description of this PR. - [ ] I have added or updated unit tests for this change. -- [ ] I have updated the [changelog](../CHANGELOG.md) with info about the changes in this PR +- [ ] I have updated the [changelog](CHANGELOG.md) with info about the changes in this PR diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8f7dbe7..b175d6b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,9 @@ name: PR Test on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + branches: [master] jobs: build: From b9586eaad685de9ae0d5f3d2036cd0b9ba97fd67 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 1 Sep 2023 09:51:42 -0400 Subject: [PATCH 3/3] Revert test change that trigger failure --- src/maybe.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maybe.ts b/src/maybe.ts index 780c806..ae3e36b 100644 --- a/src/maybe.ts +++ b/src/maybe.ts @@ -23,7 +23,7 @@ export const Just = (arg: A): Maybe => ({ alt: () => Just(arg), cata: obj => obj.Just(arg), toResult: () => Ok(arg), - inspect: () => `Jusst(${arg})`, + inspect: () => `Just(${arg})`, isNothing: () => false, isJust: () => true, value: () => arg @@ -36,7 +36,7 @@ export const Nothing: Maybe = ({ alt: a => Just(a), cata: obj => obj.Nothing(), toResult: () => Err(), - inspect: () => `Notshing`, + inspect: () => `Nothing`, isNothing: () => true, isJust: () => false, value: () => undefined