
%

%   Copyright 2012 The MathWorks, Inc.

classdef Constant < coder.rtiostreamtest.Test
    %CONSTANT Always outputs a predefined constant
    %   The output of the runTest is always a constant that has been
    %   defined during the initialization of the object via its constructor
    
    properties
        constant; % The value that will always be output
    end
    
    methods
        
        function this = Constant(constant, name)
            this = this@coder.rtiostreamtest.Test(name);
            this.constant = constant; % Set it
        end
        
        function result = runTest(this, ~, ~)
            result = this.constant; % Return it
        end
        
    end
    
end

