kaistshadow / blockchain-sim

Scalable blockchain simulator/emulator running on shadow simulator
MIT License
9 stars 1 forks source link

issue #163 - Create a example catch2 unit test for BLEEP library #182

Closed ygnkim closed 3 years ago

ygnkim commented 3 years ago

This PR is for issue #163 I made several modifications for BLEEP library. Especially, I changed how several API classes (such as BL2_Socket_API) maintain its instance (i.e., singleton instance).

As a result, very simple catch2 unit test is now working for BLEEP library.

ygnkim commented 3 years ago

BLEEP lib을 catch2로 테스트하는 가장 간단한 example을 첫 PR로 만들고, 그 다음에 BLEEP lib을 리팩토링하는 PR을 추가로 만들었다면 더 나았을 것이다.

우선 테스트는 모두 pass했으니 merge를 하도록 하겠다.