forked from extern/nushell
cratification: part II of the math commands to nu-cmd-extra (#9657)
The following math commands are being moved to nu-cmd-extra * cos * cosh * egamma * phi * pi * sin * sinh * tan * tanh * tau For now I think we have most of the obvious commands moved over based on @sholderbach this should cover moving the "high school" commands.. >>Yeah I think this rough separation into "high school" math in extra and "middle school"/"programmer" math in the core makes a ton of sense. And to reference the @fdncred list from https://github.com/nushell/nushell/pull/9647#issuecomment-1629498812
This commit is contained in:
@ -15,6 +15,7 @@ mod test_examples {
|
||||
check_example_input_and_output_types_match_command_signature,
|
||||
};
|
||||
|
||||
use crate::MathPi;
|
||||
use nu_protocol::{
|
||||
engine::{Command, EngineState, StateWorkingSet},
|
||||
Type,
|
||||
@ -63,6 +64,9 @@ mod test_examples {
|
||||
|
||||
working_set.add_decl(Box::new(nu_command::Enumerate));
|
||||
working_set.add_decl(Box::new(nu_cmd_lang::If));
|
||||
// math commands
|
||||
working_set.add_decl(Box::new(MathPi));
|
||||
working_set.add_decl(Box::new(nu_command::MathRound));
|
||||
|
||||
// Adding the command that is being tested to the working set
|
||||
working_set.add_decl(cmd);
|
||||
|
Reference in New Issue
Block a user