#include <bits/stdc++.h>   using namespace std;   const string YES =  Yes ;   const string NO =  No ;   string solve() {     int N;     cin >> N;     vector<int> p(N);     for (int i = 0; i < (N); ++i) {       cin >> p[i];     }     for (int i = 0; i < (N - 1); ++i) {       if (p[i] + 1 == p[i + 1]) {         continue;       }       if (p[i] > p[i + 1]) {         continue;       }       return NO;     }     return YES;   }   int main() {     ios::sync_with_stdio(false);     cin.tie(nullptr);     int T;     cin >> T;     for (int t = 0; t < (T); ++t) {       cout << solve() << endl;     }     return 0;   }   