1*421128efSShawn McCarney /** 2*421128efSShawn McCarney * Copyright © 2021 IBM Corporation 3*421128efSShawn McCarney * 4*421128efSShawn McCarney * Licensed under the Apache License, Version 2.0 (the "License"); 5*421128efSShawn McCarney * you may not use this file except in compliance with the License. 6*421128efSShawn McCarney * You may obtain a copy of the License at 7*421128efSShawn McCarney * 8*421128efSShawn McCarney * http://www.apache.org/licenses/LICENSE-2.0 9*421128efSShawn McCarney * 10*421128efSShawn McCarney * Unless required by applicable law or agreed to in writing, software 11*421128efSShawn McCarney * distributed under the License is distributed on an "AS IS" BASIS, 12*421128efSShawn McCarney * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*421128efSShawn McCarney * See the License for the specific language governing permissions and 14*421128efSShawn McCarney * limitations under the License. 15*421128efSShawn McCarney */ 16*421128efSShawn McCarney #include "phase_fault.hpp" 17*421128efSShawn McCarney 18*421128efSShawn McCarney #include <gtest/gtest.h> 19*421128efSShawn McCarney 20*421128efSShawn McCarney using namespace phosphor::power::regulators; 21*421128efSShawn McCarney 22*421128efSShawn McCarney TEST(PhaseFaultTests, ToString) 23*421128efSShawn McCarney { 24*421128efSShawn McCarney EXPECT_EQ(toString(PhaseFaultType::n), "n"); 25*421128efSShawn McCarney EXPECT_EQ(toString(PhaseFaultType::n_plus_1), "n+1"); 26*421128efSShawn McCarney } 27