Cody

Problem 679. Alias abs to asb

Solution 2890751

Submitted on 29 Aug 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
global asb % Goal is to alias abs to asb for dyslexic typers k=-randi(10); y=make_alias(1); assert(isequal(abs(k),asb(k)))

Error using make_alias Too many output arguments. Error in Test1 (line 3) y=make_alias(1);

2   Fail
global asb k=-99; y=make_alias(1); assert(abs(-4)==asb(-4))

Error using make_alias Too many output arguments. Error in Test2 (line 3) y=make_alias(1);