If there was a game the A’s were meant to lose in their three-game series against the Rangers, it was Tuesday’s.

Yu Darvish vs. Dan Straily was all you had to know to pick a favorite. Darvish was 7-1 with a 2.97 ERA and a majors-leading 86 strikeouts, and Straily had a 7.27 ERA and a spot in the A’s rotation only because of Brett Anderson’s injury.

Naturally, because baseball is as unpredictable as the Texas weather, the A’s won 1-0.

Hours after a storm passed through the area, the skies cleared up, and it was downright pleasant (64 degrees) by the time Darvish took the mound. As it turned out, Straily pitched the game of his life – facing one batter over the minimum through seven innings — and Darvish was done after six.

Yoenis Cespedes’ third-inning home run stood up for the A’s, who beat the Rangers on consecutive nights and will try to complete a sweep in Wednesday’s matinee. It’s Jarrod Parker’s turn on the mound.

In seven starts last season and in his first five this season, Straily never lasted seven innings. In four starts leading up to Tuesday, he failed to complete six innings. Suddenly, everything clicked for the Redlands native who grew up in Oregon and was a 24th-round pick in 2009.

A night after Bartolo Colon quieted the Rangers for seven innings, Straily was aggressive and efficient with his pitches. He struck out five, Elvis Andrus and Mitch Moreland twice, and walked nobody. He threw 88 pitches, 63 of which were strikes.

Straily retired his first seven batters before yielding a single to A.J. Pierzynski, who was activated from the disabled list before the game. Straily put down the next nine batters before Jurickson Profar singled. No worries. Straily picked him off.