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

[General]「型パラメータと変位指定」のところの練習問題で、回答が正しいか確かめるテストがない #558

Open
kmizu opened this issue May 28, 2020 · 1 comment
Assignees

Comments

@kmizu
Copy link
Contributor

kmizu commented May 28, 2020

こんな感じのを

  val empty: Stack[Int] = Stack()
  val stack = empty.push(1).push(2)
  assert(stack.top == 2)
  assert(stack.pop.top == 1)
  assert(stack.pop.pop == empty)

テストとして入れるのがよさそう

@kmizu kmizu self-assigned this Jul 4, 2022
@kmizu
Copy link
Contributor Author

kmizu commented Jul 4, 2022

2022/07/04(月)のもくもく会で決まったこと

@kmizu kmizu changed the title 「型パラメータと変位指定」のところの練習問題で、回答が正しいか確かめるテストがない [General]「型パラメータと変位指定」のところの練習問題で、回答が正しいか確かめるテストがない Jul 4, 2022
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