feat: add property model foundation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "fesa/property/ShellProperty.hpp"
|
||||
#include "fesa/property/Property.hpp"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -24,10 +25,17 @@ int require_throws(Function&& function) {
|
||||
|
||||
int run_shell_property_tests() {
|
||||
const fesa::property::ShellProperty property{500, 700, 0.01};
|
||||
const fesa::property::Property& base = property;
|
||||
|
||||
if (const int result = require(property.id() == 500); result != 0) {
|
||||
return result;
|
||||
}
|
||||
if (const int result = require(base.id() == 500); result != 0) {
|
||||
return result;
|
||||
}
|
||||
if (const int result = require(base.kind() == fesa::property::PropertyKind::Shell); result != 0) {
|
||||
return result;
|
||||
}
|
||||
if (const int result = require(property.materialId() == 700); result != 0) {
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user