15 #ifndef Om_Language_Operation_RearrangeOperation_
21 #ifndef Om_Macro_Precompilation_
23 #include "boost/test/unit_test.hpp"
33 BOOST_AUTO_TEST_SUITE(RearrangeOperationTest)
35 BOOST_AUTO_TEST_CASE(DefinitionTest) {
38 System::Get().Evaluate(
"drop find {rearrange} system")
42 BOOST_AUTO_TEST_CASE(GeneralTest) {
52 "{the` flaven the` glaven}"
53 "{the` glaven the` flaven}"
62 "{do{the glaven} do{the flaven}}"
63 "{the` flaven the` glaven}"
69 BOOST_AUTO_TEST_SUITE_END()
93 Om::Language::Operation::RearrangeOperation
97 inline char const * Type_::GetName() {
101 inline void Type_::Give(Evaluation & theEvaluation) {
106 Expression theExpression;
107 theExpression.TakeOperator(
108 DequoteOperation::GetOperator()
110 theExpression.TakeOperator(
111 InjectOperation::GetOperator()
113 theExpression.TakeQuotedProducer(
114 QuoteOperation::GetOperator()
116 theExpression.TakeOperator(
117 PairOperation::GetOperator()
119 theExpression.TakeQuotedProducer(
120 FillOperation::GetOperator()
122 theEvaluation.TakeQuotedProducer(theExpression);
std::auto_ptr< TheGiveable > Give(TheGiveable &)
Calls Move on the object.
#define Om_Language_Operation_RearrangeOperation_GetName_()