Skip to content

Conversation

@aster-void
Copy link
Contributor

@aster-void aster-void commented Jan 14, 2025

ルール:
タグと授業のかぶっている数それぞれを合計して、それの降順で並べる。

具体的な変更内容

影響範囲

動作要件

補足

レビューリクエストを出す前にチェック!

  • 改めてセルフレビューしたか
  • 手動での動作検証を行ったか
  • server の機能追加ならば、テストを書いたか
    • 理由: 書いた | server の機能追加ではない
  • 間違った使い方が存在するならば、それのドキュメントをコメントで書いたか
    • 理由: 書いた | 間違った使い方は存在しない
  • わかりやすいPRになっているか

test("recommendation engine", async () => {
const usersFor101 = await recommendedTo(101, 5, 0);
if (!usersFor101.ok) throw new Error();
if (!usersFor101.ok) throw console.error(usersFor101.error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これ undefined が throw されません?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

テストなので失敗すればなんでもいいかなと思ってこうしました

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

前のだとエラーの情報が消えるので

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど🧐

@aster-void aster-void merged commit 64f2a0c into main Jan 15, 2025
8 checks passed
@aster-void aster-void deleted the update-recommender branch January 15, 2025 12:39
nakaterm pushed a commit that referenced this pull request Mar 6, 2025
ルール: 
    タグと授業のかぶっている数それぞれを合計して、それの降順で並べる。

## 具体的な変更内容

## 影響範囲

## 動作要件

## 補足

## レビューリクエストを出す前にチェック!

- [ ] 改めてセルフレビューしたか
- [ ] 手動での動作検証を行ったか
- [ ] server の機能追加ならば、テストを書いたか
  - 理由: 書いた | server の機能追加ではない
- [ ] 間違った使い方が存在するならば、それのドキュメントをコメントで書いたか
  - 理由: 書いた | 間違った使い方は存在しない
- [ ] わかりやすいPRになっているか

<!-- レビューリクエスト後は、Slackでもメンションしてお願いすることを推奨します。 -->
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

Successfully merging this pull request may close these issues.

3 participants