parmentelat / nbautoeval

Other
19 stars 4 forks source link

constants in classes #30

Open parmentelat opened 4 years ago

parmentelat commented 4 years ago

in the context e.g. of the Quaternion class, it would make sense to be able to define constants in a ClassExercise (e.g. I = Quaternion(0, 1, 0, 0)) so that subsequent tests can refer to these through constant names instead of having to pollute the whole scenario with initializations over and over again